Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -71,11 +71,11 @@ def message_and_history(audio_file,input, history, api_key):
|
|
71 |
history = history or []
|
72 |
output_text = api_calling(audio_file,input,api_key)
|
73 |
|
74 |
-
if len(
|
75 |
input_text = "Speech from the video."
|
76 |
-
history.append((
|
77 |
else:
|
78 |
-
history.append((
|
79 |
|
80 |
return history, history
|
81 |
|
|
|
71 |
history = history or []
|
72 |
output_text = api_calling(audio_file,input,api_key)
|
73 |
|
74 |
+
if len(input) == 0:
|
75 |
input_text = "Speech from the video."
|
76 |
+
history.append((input, output_text))
|
77 |
else:
|
78 |
+
history.append((input, output_text))
|
79 |
|
80 |
return history, history
|
81 |
|