Spaces:
Build error
Build error
Update app.py
Browse files31 unmodified lines3233343536373814 unmodified lines5354555657581 unmodified line6061626364656631 unmodified lines# Example condition: if the text (after stripping whitespace) equals "a" (case-insensitive), call workflow_a.# Forward the input image to both image outputs.return "ok, that worked!"# Build the Gradio interface using Blocks for a custom layout.with gr.Blocks() as demo:14 unmodified lines# output_image2 = gr.Image(label="Output Image 2")output_text = gr.Textbox(label="Output Text")# Connect the Start button to the main function.start_button.click(1 unmodified line#inputs=[image_input, text_input],inputs=[text_input],#outputs=[output_image1, output_image2, output_text]outputs=[output_text])# Launch the Gradio app.31 unmodified lines3233343536373814 unmodified lines535455565758591 unmodified line6162636465666731 unmodified lines# Example condition: if the text (after stripping whitespace) equals "a" (case-insensitive), call workflow_a.# Forward the input image to both image outputs.return "ok, that worked!", "another text output"# Build the Gradio interface using Blocks for a custom layout.with gr.Blocks() as demo:14 unmodified lines# output_image2 = gr.Image(label="Output Image 2")output_text = gr.Textbox(label="Output Text")output_text_b = gr.Textbox(label="Output Text B")# Connect the Start button to the main function.start_button.click(1 unmodified line#inputs=[image_input, text_input],inputs=[text_input],#outputs=[output_image1, output_image2, output_text]outputs=[output_text, output_text_b])# Launch the Gradio app.
app.py+3-2