Tonic commited on
Commit
dac51d0
1 Parent(s): fc4944e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -523,10 +523,12 @@ def create_interface():
523
  with gr.Accordion("Use Voice", open=False) as voice_accordion:
524
  audio_input = gr.Audio(label="Speak", type="filepath", sources="microphone")
525
  audio_output = gr.Markdown(label="Output text") # Markdown component for audio
 
526
 
527
  with gr.Accordion("Use a Picture", open=False) as picture_accordion:
528
  image_input = gr.Image(label="Upload image")
529
  image_output = gr.Markdown(label="Output text") # Markdown component for image
 
530
 
531
  with gr.Accordion("MultiMed", open=False) as multimend_accordion:
532
  text_input = gr.Textbox(label="Use Text", lines=3, placeholder="I have had a sore throat and phlegm for a few days and now my cough has gotten worse!")
@@ -534,7 +536,17 @@ def create_interface():
534
 
535
  text_button = gr.Button("Use MultiMed")
536
  text_button.click(process_and_query, inputs=[input_language, audio_input, image_input, text_input], outputs=[text_output])
537
-
 
 
 
 
 
 
 
 
 
 
538
  clear_button = gr.Button("Clear")
539
  clear_button.click(clear, inputs=[], outputs=[input_language, audio_input, image_input, text_input])
540
 
 
523
  with gr.Accordion("Use Voice", open=False) as voice_accordion:
524
  audio_input = gr.Audio(label="Speak", type="filepath", sources="microphone")
525
  audio_output = gr.Markdown(label="Output text") # Markdown component for audio
526
+ gr.Examples([["audio1.m4a"],["audio2.m4a"],],inputs=[input_language])
527
 
528
  with gr.Accordion("Use a Picture", open=False) as picture_accordion:
529
  image_input = gr.Image(label="Upload image")
530
  image_output = gr.Markdown(label="Output text") # Markdown component for image
531
+ gr.Examples([["image1.png"], ["image2.jpg"], ["image3.jpg"],],inputs=[image_input])
532
 
533
  with gr.Accordion("MultiMed", open=False) as multimend_accordion:
534
  text_input = gr.Textbox(label="Use Text", lines=3, placeholder="I have had a sore throat and phlegm for a few days and now my cough has gotten worse!")
 
536
 
537
  text_button = gr.Button("Use MultiMed")
538
  text_button.click(process_and_query, inputs=[input_language, audio_input, image_input, text_input], outputs=[text_output])
539
+ gr.Examples([
540
+ ["What is the proper treatment for buccal herpes?"],
541
+ ["Male, 40 presenting with swollen glands and a rash"],
542
+ ["How does cellular metabolism work TCA cycle"],
543
+ ["What special care must be provided to children with chicken pox?"],
544
+ ["When and how often should I wash my hands?"],
545
+ ["بکل ہرپس کا صحیح علاج کیا ہے؟"],
546
+ ["구강 헤르페스의 적절한 치료법은 무엇입니까?"],
547
+ ["Je, ni matibabu gani sahihi kwa herpes ya buccal?"],
548
+ ],inputs=[text_input])
549
+
550
  clear_button = gr.Button("Clear")
551
  clear_button.click(clear, inputs=[], outputs=[input_language, audio_input, image_input, text_input])
552