Spaces:
Build error
Build error
Matthew Hollings
commited on
Commit
•
f10443e
1
Parent(s):
26a02ca
Gradio blocks layout
Browse files
app.py
CHANGED
@@ -81,15 +81,17 @@ def reset_all(new_line):
|
|
81 |
demo = gr.Blocks()
|
82 |
|
83 |
with demo:
|
84 |
-
input = gr.Textbox(
|
85 |
-
lines=1,
|
86 |
-
value="The drought had lasted now for ten million years, and the reign of the terrible lizards had long since ended.",
|
87 |
-
)
|
88 |
with gr.Row():
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
|
94 |
add_line_button.click(fn=add_to_lines, inputs=input, outputs=output)
|
95 |
clear_all_button.click(fn=reset_all, inputs=input, outputs=output)
|
|
|
81 |
demo = gr.Blocks()
|
82 |
|
83 |
with demo:
|
|
|
|
|
|
|
|
|
84 |
with gr.Row():
|
85 |
+
with gr.Column():
|
86 |
+
input = gr.Textbox(
|
87 |
+
lines=1,
|
88 |
+
value="The drought had lasted now for ten million years, and the reign of the terrible lizards had long since ended.",
|
89 |
+
)
|
90 |
+
with gr.Row():
|
91 |
+
add_line_button = gr.Button("Add line", variant="primary")
|
92 |
+
clear_all_button = gr.Button("Reset all")
|
93 |
+
with gr.Column():
|
94 |
+
output = gr.HTML()
|
95 |
|
96 |
add_line_button.click(fn=add_to_lines, inputs=input, outputs=output)
|
97 |
clear_all_button.click(fn=reset_all, inputs=input, outputs=output)
|