Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,11 +25,11 @@ def fonc(img):
|
|
| 25 |
|
| 26 |
with gr.Blocks() as demo:
|
| 27 |
gr.Markdown("Start typing below and then click **Run** to see the output.")
|
| 28 |
-
img1=gr.Image()
|
| 29 |
inp = gr.Textbox(placeholder="What is your name?")
|
| 30 |
out = gr.Textbox()
|
| 31 |
btn = gr.Button("Run")
|
| 32 |
-
btn.click(fn=fonc, inputs=
|
| 33 |
|
| 34 |
|
| 35 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
|
|
|
| 25 |
|
| 26 |
with gr.Blocks() as demo:
|
| 27 |
gr.Markdown("Start typing below and then click **Run** to see the output.")
|
| 28 |
+
img1=gr.Image(type='filepath',tool=['editor', 'select'] )
|
| 29 |
inp = gr.Textbox(placeholder="What is your name?")
|
| 30 |
out = gr.Textbox()
|
| 31 |
btn = gr.Button("Run")
|
| 32 |
+
btn.click(fn=fonc, inputs=img1, outputs=out)
|
| 33 |
|
| 34 |
|
| 35 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|