SandraCLV commited on
Commit
4902385
·
1 Parent(s): aecee70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,8 +16,8 @@ def image_to_text(input_image):
16
  with gr.Blocks() as demo:
17
  gr.Markdown("Start typing below and then click **Run** to see the output.")
18
  with gr.Row():
19
- inp = gr.Image(type='pil')
20
  out = gr.Textbox(placeholder=image_to_text(inp))
21
- gr.Interface(fn=image_to_text, inputs=inp, outputs=[out],interpretation="default")
22
 
23
  demo.launch()
 
16
  with gr.Blocks() as demo:
17
  gr.Markdown("Start typing below and then click **Run** to see the output.")
18
  with gr.Row():
19
+ inp = gr.Image()
20
  out = gr.Textbox(placeholder=image_to_text(inp))
21
+ gr.Interface(fn=image_to_text, inputs=inp, outputs=out,interpretation="default")
22
 
23
  demo.launch()