Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ def get_quote(image):
|
|
56 |
#import gradio as gr
|
57 |
title = "Image to text generation"
|
58 |
|
59 |
-
demo = gr.Interface(fn=get_quote, gr.Image(type="pil"),
|
60 |
#inputs = "image"
|
61 |
#inputs=gr.inputs.Image(type="pil")
|
62 |
if __name__ == "__main__":
|
|
|
56 |
#import gradio as gr
|
57 |
title = "Image to text generation"
|
58 |
|
59 |
+
demo = gr.Interface(fn=get_quote, inputs=gr.inputs.Image(type="pil"), outputs=['text'],title = title, description = "Import an image file and get text from it" ,cache_examples=False, enable_queue=True).launch()
|
60 |
#inputs = "image"
|
61 |
#inputs=gr.inputs.Image(type="pil")
|
62 |
if __name__ == "__main__":
|