Tonic commited on
Commit
482b15b
·
1 Parent(s): 206f02e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -579,18 +579,18 @@ def clear(input_language, audio_input, image_input, text_input):
579
 
580
  def create_interface():
581
  with gr.Blocks(theme='ParityError/Anime') as iface:
582
- input_language = gr.Dropdown(languages, label="Select the language", value="English", interactive=True)
583
 
584
  with gr.Accordion("Use Voice", open=False) as voice_accordion:
585
- audio_input = gr.Audio(label="Speak", type="filepath", sources="microphone")
586
  audio_output = gr.Markdown(label="Output text")
587
 
588
  with gr.Accordion("Use a Picture", open=False) as picture_accordion:
589
- image_input = gr.Image(label="Upload image")
590
  image_output = gr.Markdown(label="Output text")
591
 
592
  with gr.Accordion("MultiMed", open=False) as multimend_accordion:
593
- text_input = gr.Textbox(label="Use Text", lines=5)
594
  text_output = gr.Markdown(label="Output text")
595
 
596
  # Moved the MultiMed button outside of the accordion
@@ -605,4 +605,4 @@ def create_interface():
605
  return iface
606
 
607
  iface = create_interface()
608
- iface.launch(show_error=True, debug=True)
 
579
 
580
  def create_interface():
581
  with gr.Blocks(theme='ParityError/Anime') as iface:
582
+ input_language = gr.Dropdown(languages, label="Select the language", value="English", interactive=True, optional=True)
583
 
584
  with gr.Accordion("Use Voice", open=False) as voice_accordion:
585
+ audio_input = gr.Audio(label="Speak", type="filepath", sources="microphone", optional=True)
586
  audio_output = gr.Markdown(label="Output text")
587
 
588
  with gr.Accordion("Use a Picture", open=False) as picture_accordion:
589
+ image_input = gr.Image(label="Upload image", optional=True)
590
  image_output = gr.Markdown(label="Output text")
591
 
592
  with gr.Accordion("MultiMed", open=False) as multimend_accordion:
593
+ text_input = gr.Textbox(label="Use Text", lines=5, optional=True)
594
  text_output = gr.Markdown(label="Output text")
595
 
596
  # Moved the MultiMed button outside of the accordion
 
605
  return iface
606
 
607
  iface = create_interface()
608
+ iface.launch(show_error=True, debug=True, share=True)