SandraCLV commited on
Commit
837a36a
·
1 Parent(s): c1a321e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -16,9 +16,10 @@ def image_to_text(input_image):
16
  #texts = transcriber(text_output)
17
  return text_output
18
 
19
- gr.Interface.from_pipeline(pipe,
20
- title="22k Image Classification",
 
 
21
  description="Object Recognition using Microsoft BEIT",
22
- examples = [],
23
  article = "Author: <a href=\"https://huggingface.co/rowel\">Rowel Atienza</a>",
24
  ).launch()
 
16
  #texts = transcriber(text_output)
17
  return text_output
18
 
19
+ gr.Interface(fn=image_to_text_model,
20
+ title="Image to Text",
21
+ inputs=gr.Image(type='pil'),
22
+ outputs=[gr.Textbox(label="Output")],
23
  description="Object Recognition using Microsoft BEIT",
 
24
  article = "Author: <a href=\"https://huggingface.co/rowel\">Rowel Atienza</a>",
25
  ).launch()