Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,14 +5,15 @@ def generate_text(text):
|
|
| 5 |
|
| 6 |
return 'success'
|
| 7 |
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
|
|
|
| 12 |
|
| 13 |
|
| 14 |
-
|
| 15 |
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
|
|
|
| 5 |
|
| 6 |
return 'success'
|
| 7 |
|
| 8 |
+
with gr.Blocks() as demo:
|
| 9 |
+
|
| 10 |
+
input_box = gr.Textbox(label="Enter your input")
|
| 11 |
+
input_button = gr.Button("Submit")
|
| 12 |
+
input_output = gr.Textbox(label="Result")
|
| 13 |
|
| 14 |
|
| 15 |
+
input_button.click(generate_text, input_box, input_output)
|
| 16 |
|
| 17 |
|
| 18 |
+
gr.close_all()
|
| 19 |
+
demo.queue().launch()
|