Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -395,7 +395,12 @@ about_html = f'''
|
|
| 395 |
'''
|
| 396 |
|
| 397 |
|
| 398 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 399 |
# Mount Gradio app
|
| 400 |
app = gr.mount_gradio_app(app, demo, path="/gradioapp")#, allowed_paths=["/"], root_path="deploy/")
|
| 401 |
|
|
|
|
| 395 |
'''
|
| 396 |
|
| 397 |
|
| 398 |
+
with gr.Blocks() as demo:
|
| 399 |
+
text_input = gr.Textbox(label="Name")
|
| 400 |
+
markdown = gr.Markdown(label="Output Box")
|
| 401 |
+
new_btn = gr.Button("New")
|
| 402 |
+
new_btn.click(fn=predict, inputs=[text_input], outputs=[markdown])
|
| 403 |
+
|
| 404 |
# Mount Gradio app
|
| 405 |
app = gr.mount_gradio_app(app, demo, path="/gradioapp")#, allowed_paths=["/"], root_path="deploy/")
|
| 406 |
|