HakimHa commited on
Commit
33b9657
Β·
1 Parent(s): 8255e3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -42,14 +42,15 @@ def handle_audio(audio):
42
  return handle_text(transcriptions)
43
 
44
  def chatbot(text, img, audio):
45
- text_output = handle_text(text)
46
- img_output = handle_image(img)
47
- audio_output = handle_audio(audio)
48
 
49
  outputs = [o for o in [text_output, img_output, audio_output] if o]
50
  return "\n".join(outputs)
51
 
52
 
 
53
  iface = gr.Interface(
54
  fn=chatbot,
55
  inputs=[
 
42
  return handle_text(transcriptions)
43
 
44
  def chatbot(text, img, audio):
45
+ text_output = handle_text(text) if text is not None else ''
46
+ img_output = handle_image(img) if img is not None else ''
47
+ audio_output = handle_audio(audio) if audio is not None else ''
48
 
49
  outputs = [o for o in [text_output, img_output, audio_output] if o]
50
  return "\n".join(outputs)
51
 
52
 
53
+
54
  iface = gr.Interface(
55
  fn=chatbot,
56
  inputs=[