Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ def main(text):
|
|
| 32 |
# Example condition: if the text (after stripping whitespace) equals "a" (case-insensitive), call workflow_a.
|
| 33 |
|
| 34 |
# Forward the input image to both image outputs.
|
| 35 |
-
return "ok, that worked!"
|
| 36 |
|
| 37 |
# Build the Gradio interface using Blocks for a custom layout.
|
| 38 |
with gr.Blocks() as demo:
|
|
@@ -53,6 +53,7 @@ with gr.Blocks() as demo:
|
|
| 53 |
# output_image2 = gr.Image(label="Output Image 2")
|
| 54 |
|
| 55 |
output_text = gr.Textbox(label="Output Text")
|
|
|
|
| 56 |
|
| 57 |
# Connect the Start button to the main function.
|
| 58 |
start_button.click(
|
|
@@ -60,7 +61,7 @@ with gr.Blocks() as demo:
|
|
| 60 |
#inputs=[image_input, text_input],
|
| 61 |
inputs=[text_input],
|
| 62 |
#outputs=[output_image1, output_image2, output_text]
|
| 63 |
-
outputs=[output_text]
|
| 64 |
)
|
| 65 |
|
| 66 |
# Launch the Gradio app.
|
|
|
|
| 32 |
# Example condition: if the text (after stripping whitespace) equals "a" (case-insensitive), call workflow_a.
|
| 33 |
|
| 34 |
# Forward the input image to both image outputs.
|
| 35 |
+
return "ok, that worked!", "another text output"
|
| 36 |
|
| 37 |
# Build the Gradio interface using Blocks for a custom layout.
|
| 38 |
with gr.Blocks() as demo:
|
|
|
|
| 53 |
# output_image2 = gr.Image(label="Output Image 2")
|
| 54 |
|
| 55 |
output_text = gr.Textbox(label="Output Text")
|
| 56 |
+
output_text_b = gr.Textbox(label="Output Text B")
|
| 57 |
|
| 58 |
# Connect the Start button to the main function.
|
| 59 |
start_button.click(
|
|
|
|
| 61 |
#inputs=[image_input, text_input],
|
| 62 |
inputs=[text_input],
|
| 63 |
#outputs=[output_image1, output_image2, output_text]
|
| 64 |
+
outputs=[output_text, output_text_b]
|
| 65 |
)
|
| 66 |
|
| 67 |
# Launch the Gradio app.
|