HakimHa commited on
Commit
435902d
Β·
1 Parent(s): d93e52d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -55,7 +55,7 @@ def stt(audio: object, language: str) -> str:
55
  def chatbot(text, img, audio):
56
  text_output = handle_text(text) if text is not None else ''
57
  img_output = handle_image(img) if img is not None else ''
58
- audio_output = handle_text(stt(audio)) if audio is not None else ''
59
 
60
  outputs = [o for o in [text_output, img_output, audio_output] if o]
61
  return "\n".join(outputs)
 
55
  def chatbot(text, img, audio):
56
  text_output = handle_text(text) if text is not None else ''
57
  img_output = handle_image(img) if img is not None else ''
58
+ audio_output = handle_text(stt(audio,'english')) if audio is not None else ''
59
 
60
  outputs = [o for o in [text_output, img_output, audio_output] if o]
61
  return "\n".join(outputs)