Spaces:
Runtime error
Runtime error
changed layout
Browse files
app.py
CHANGED
@@ -407,6 +407,19 @@ languages = [
|
|
407 |
|
408 |
with gr.Blocks(theme='ParityError/Anime') as iface :
|
409 |
gr.Markdown(welcome_message)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
410 |
with gr.Accordion("text summarization",open=True):
|
411 |
text_input = gr.Textbox(label="input text",lines=5)
|
412 |
text_output = gr.Markdown(label="output text")
|
@@ -422,19 +435,6 @@ with gr.Blocks(theme='ParityError/Anime') as iface :
|
|
422 |
["구강 헤르페스의 적절한 치료법은 무엇입니까?"],
|
423 |
["Je, ni matibabu gani sahihi kwa herpes ya buccal?"],
|
424 |
],inputs=[text_input])
|
425 |
-
with gr.Accordion("image identification",open=True):
|
426 |
-
image_input = gr.Image(label="upload image")
|
427 |
-
image_output = gr.Markdown(label="output text")
|
428 |
-
image_button = gr.Button("process image")
|
429 |
-
image_button.click(process_image, inputs=image_input, outputs=image_output)
|
430 |
-
gr.Examples(["sick person.jpeg"],inputs=[image_input])
|
431 |
-
with gr.Accordion("speech to text",open=True):
|
432 |
-
input_language = gr.Dropdown(languages, label="select the language",value="English",interactive=True)
|
433 |
-
audio_input = gr.Audio(label="speak",type="filepath",sources="microphone")
|
434 |
-
audio_output = gr.Markdown(label="output text")
|
435 |
-
audio_button = gr.Button("process audio")
|
436 |
-
audio_button.click(process_speech, inputs=[input_language,audio_input], outputs=audio_output)
|
437 |
-
gr.Examples([["English","sample_input.mp3"]],inputs=[input_language,audio_input])
|
438 |
with gr.Accordion("hallucination check",open=True):
|
439 |
assertion = gr.Textbox(label="assertion")
|
440 |
citation = gr.Textbox(label="citation text")
|
|
|
407 |
|
408 |
with gr.Blocks(theme='ParityError/Anime') as iface :
|
409 |
gr.Markdown(welcome_message)
|
410 |
+
with gr.Accordion("speech to text",open=True):
|
411 |
+
input_language = gr.Dropdown(languages, label="select the language",value="English",interactive=True)
|
412 |
+
audio_input = gr.Audio(label="speak",type="filepath",sources="microphone")
|
413 |
+
audio_output = gr.Markdown(label="output text")
|
414 |
+
audio_button = gr.Button("process audio")
|
415 |
+
audio_button.click(process_speech, inputs=[input_language,audio_input], outputs=audio_output)
|
416 |
+
gr.Examples([["English","sample_input.mp3"]],inputs=[input_language,audio_input])
|
417 |
+
with gr.Accordion("image identification",open=True):
|
418 |
+
image_input = gr.Image(label="upload image")
|
419 |
+
image_output = gr.Markdown(label="output text")
|
420 |
+
image_button = gr.Button("process image")
|
421 |
+
image_button.click(process_image, inputs=image_input, outputs=image_output)
|
422 |
+
gr.Examples(["sick person.jpeg"],inputs=[image_input])
|
423 |
with gr.Accordion("text summarization",open=True):
|
424 |
text_input = gr.Textbox(label="input text",lines=5)
|
425 |
text_output = gr.Markdown(label="output text")
|
|
|
435 |
["구강 헤르페스의 적절한 치료법은 무엇입니까?"],
|
436 |
["Je, ni matibabu gani sahihi kwa herpes ya buccal?"],
|
437 |
],inputs=[text_input])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
438 |
with gr.Accordion("hallucination check",open=True):
|
439 |
assertion = gr.Textbox(label="assertion")
|
440 |
citation = gr.Textbox(label="citation text")
|