Spaces:
Runtime error
Runtime error
gradio interface *nudge*
Browse files590 unmodified lines5915925935945945955965975982 unmodified lines6016026036036046056066076086086096106116121 unmodified line61461561661661761861962011 unmodified lines632633634634635636637637638638639590 unmodified lines return "English", None, None, "", None
def create_interface(): with gr.Blocks(theme='ParityError/Anime') as iface: # with gr.Blocks(theme='ParityError/Anime') as iface: with gr.Blocks() as interface: # Display the welcome message gr.Markdown(welcome_message) # Add a 'None' or similar option to represent no selection2 unmodified lines
with gr.Accordion("Use Voice", open=False) as voice_accordion: audio_input = gr.Audio(label="Speak") # audio_output = gr.Markdown(label="Output text") # Markdown component for audio audio_output = gr.Markdown(label="Output text") # Markdown component for audio gr.Examples([["audio1.wav"],["audio2.wav"],],inputs=[audio_input])
with gr.Accordion("Use a Picture", open=False) as picture_accordion: image_input = gr.Image(label="Upload image") # image_output = gr.Markdown(label="Output text") # Markdown component for image image_output = gr.Markdown(label="Output text") # Markdown component for image gr.Examples([["image1.png"], ["image2.jpeg"], ["image3.jpeg"],],inputs=[image_input])
with gr.Accordion("MultiMed", open=False) as multimend_accordion:1 unmodified line gr.Examples([ ["What is the proper treatment for buccal herpes?"], ["I have had a sore throat and hoarse voice for serveral days and now a strong cough recently "], ["I have had a sore throat and hoarse voice for several days and now a strong cough recently "], ["How does cellular metabolism work TCA cycle"], ["What special care must be provided to children with chicken pox?"], ["When and how often should I wash my hands?"],11 unmodified lines clear_button = gr.Button("Clear") clear_button.click(clear, inputs=[], outputs=[input_language, audio_input, image_input, text_output, audio_output])
return iface return interface
iface = create_interface()iface.launch(show_error=True, debug=True)interface = create_interface()interface.launch(show_error=True, debug=True)app.py+8-7