Kev09 commited on
Commit
499965f
·
1 Parent(s): 00b167b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=fonc, outputs=out)
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")