Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 20 |
-
title="
|
|
|
|
|
|
|
| 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()
|