Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -26,18 +26,17 @@ def greet(
|
|
26 |
with gr.Blocks() as demo:
|
27 |
gr.Markdown("Flip text or image files using this demo.")
|
28 |
with gr.Tab("Flip Text"):
|
29 |
-
text_input = gr.Textbox()
|
30 |
-
text_output = gr.Textbox()
|
31 |
text_button = gr.Button("Flip")
|
32 |
with gr.Tab("Flip Image"):
|
33 |
with gr.Row():
|
34 |
-
image_input = gr.Image()
|
35 |
-
image_output = gr.Image()
|
36 |
image_button = gr.Button("Flip")
|
37 |
|
38 |
with gr.Accordion("Open for More!", open=False):
|
39 |
gr.Markdown("You can add anything in a toggle.")
|
40 |
-
gr.Markdown("For example, you can add more text boxes, sliders, or images.")
|
41 |
with gr.Row():
|
42 |
with gr.Column():
|
43 |
name_input = gr.Text(label="What is your name?")
|
|
|
26 |
with gr.Blocks() as demo:
|
27 |
gr.Markdown("Flip text or image files using this demo.")
|
28 |
with gr.Tab("Flip Text"):
|
29 |
+
text_input = gr.Textbox(label="Enter text to flip here")
|
30 |
+
text_output = gr.Textbox(label="Output text")
|
31 |
text_button = gr.Button("Flip")
|
32 |
with gr.Tab("Flip Image"):
|
33 |
with gr.Row():
|
34 |
+
image_input = gr.Image(label="Upload image to flip here")
|
35 |
+
image_output = gr.Image(label="Output image")
|
36 |
image_button = gr.Button("Flip")
|
37 |
|
38 |
with gr.Accordion("Open for More!", open=False):
|
39 |
gr.Markdown("You can add anything in a toggle.")
|
|
|
40 |
with gr.Row():
|
41 |
with gr.Column():
|
42 |
name_input = gr.Text(label="What is your name?")
|