helliun commited on
Commit
6a42afc
·
verified ·
1 Parent(s): f65f093

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
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