not-lain commited on
Commit
83ba519
1 Parent(s): abe552f

added some examples

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -426,6 +426,7 @@ with gr.Blocks(theme='ParityError/Anime') as iface :
426
  text_input = gr.Textbox(label="input text",lines=5)
427
  text_output = gr.Markdown(label="output text")
428
  text_button = gr.Button("process text")
 
429
  with gr.Tab("image identification"):
430
  image_input = gr.Image(label="upload image")
431
  image_output = gr.Markdown(label="output text")
@@ -441,10 +442,12 @@ with gr.Blocks(theme='ParityError/Anime') as iface :
441
  citation = gr.Textbox(label="citation text")
442
  hullucination_output = gr.Markdown(label="output text")
443
  audio_button = gr.Button("check hallucination")
 
444
  text_button.click(process_and_query, inputs=text_input, outputs=text_output)
445
  image_button.click(process_image, inputs=image_input, outputs=image_output)
446
  audio_button.click(process_speech, inputs=[audio_input,input_language], outputs=audio_output)
447
  audio_button.click(check_hallucination,inputs=[assertion,citation],outputs=hullucination_output)
 
448
 
449
 
450
 
 
426
  text_input = gr.Textbox(label="input text",lines=5)
427
  text_output = gr.Markdown(label="output text")
428
  text_button = gr.Button("process text")
429
+ gr.Examples(["my skin is swollen, and i have a high fever"],inputs=[text_input])
430
  with gr.Tab("image identification"):
431
  image_input = gr.Image(label="upload image")
432
  image_output = gr.Markdown(label="output text")
 
442
  citation = gr.Textbox(label="citation text")
443
  hullucination_output = gr.Markdown(label="output text")
444
  audio_button = gr.Button("check hallucination")
445
+ gr.Examples(["my skin is swollen, and i have a high fever"],inputs=[assertion,citation])
446
  text_button.click(process_and_query, inputs=text_input, outputs=text_output)
447
  image_button.click(process_image, inputs=image_input, outputs=image_output)
448
  audio_button.click(process_speech, inputs=[audio_input,input_language], outputs=audio_output)
449
  audio_button.click(check_hallucination,inputs=[assertion,citation],outputs=hullucination_output)
450
+
451
 
452
 
453