Rodrigo_Cobo
commited on
Commit
·
1ec4691
1
Parent(s):
cdcc96d
change input to image
Browse files
app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
def update(name):
|
3 |
-
return f"Welcome to Gradio
|
4 |
|
5 |
with gr.Blocks() as demo:
|
6 |
gr.Markdown("Start typing below and then click **Run** to see the output.")
|
7 |
with gr.Row():
|
8 |
-
inp = gr.
|
9 |
out = gr.Textbox()
|
10 |
btn = gr.Button("Run")
|
11 |
btn.click(fn=update, inputs=inp, outputs=out)
|
|
|
1 |
import gradio as gr
|
2 |
def update(name):
|
3 |
+
return f"Welcome to Gradio !"
|
4 |
|
5 |
with gr.Blocks() as demo:
|
6 |
gr.Markdown("Start typing below and then click **Run** to see the output.")
|
7 |
with gr.Row():
|
8 |
+
inp = gr.Image()
|
9 |
out = gr.Textbox()
|
10 |
btn = gr.Button("Run")
|
11 |
btn.click(fn=update, inputs=inp, outputs=out)
|