Spaces:
Runtime error
Runtime error
gradio interface *nudge*
Browse files590 unmodified lines5915925935945955965972 unmodified lines6006016026036046056066076086096106111 unmodified line61361461561661761861911 unmodified lines631632633634635636637638590 unmodified linesreturn "English", None, None, "", Nonedef create_interface():with gr.Blocks(theme='ParityError/Anime') as iface:# Display the welcome messagegr.Markdown(welcome_message)# Add a 'None' or similar option to represent no selection2 unmodified lineswith 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 audiogr.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 imagegr.Examples([["image1.png"], ["image2.jpeg"], ["image3.jpeg"],],inputs=[image_input])with gr.Accordion("MultiMed", open=False) as multimend_accordion:1 unmodified linegr.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 "],["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 linesclear_button = gr.Button("Clear")clear_button.click(clear, inputs=[], outputs=[input_language, audio_input, image_input, text_output, audio_output])return ifaceiface = create_interface()iface.launch(show_error=True, debug=True)590 unmodified lines5915925935945955965975982 unmodified lines6016026036046056066076086096106116121 unmodified line61461561661761861962011 unmodified lines632633634635636637638639590 unmodified linesreturn "English", None, None, "", Nonedef create_interface():# with gr.Blocks(theme='ParityError/Anime') as iface:with gr.Blocks() as interface:# Display the welcome messagegr.Markdown(welcome_message)# Add a 'None' or similar option to represent no selection2 unmodified lineswith 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 audiogr.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 imagegr.Examples([["image1.png"], ["image2.jpeg"], ["image3.jpeg"],],inputs=[image_input])with gr.Accordion("MultiMed", open=False) as multimend_accordion:1 unmodified linegr.Examples([["What is the proper treatment for buccal herpes?"],["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 linesclear_button = gr.Button("Clear")clear_button.click(clear, inputs=[], outputs=[input_language, audio_input, image_input, text_output, audio_output])return interfaceinterface = create_interface()interface.launch(show_error=True, debug=True)
app.py+8-7