Vihang28 commited on
Commit
cefb089
1 Parent(s): 4c23394

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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(input_text) == 0:
75
  input_text = "Speech from the video."
76
- history.append((input_text, output_text))
77
  else:
78
- history.append((input_text, output_text))
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