mariotawfik commited on
Commit
1738c66
1 Parent(s): e07b55c

changed app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -5,12 +5,10 @@ def update(name):
5
  return f"Welcome to Gradio, {name}!"
6
 
7
 
8
- with gr.Blocks() as demo:
9
- gr.Markdown("Start typing below and then click **Run** to see the output.")
10
- with gr.Row():
11
- inp = gr.Textbox(placeholder="What is your name?")
12
- out = gr.Textbox()
13
- btn = gr.Button("Run")
14
- btn.click(fn=update, inputs=inp, outputs=out)
15
 
16
- demo.launch()
 
5
  return f"Welcome to Gradio, {name}!"
6
 
7
 
8
+ with gr.Blocks() as app:
9
+ gr.Markdown("### Start typing below and then click **Run** to see the output.")
10
+ with gr.Column():
11
+ gr.File(interactive=False)
12
+ gr.UploadButton(label="Upload an executable file")
 
 
13
 
14
+ app.launch()