Spaces:
Runtime error
Runtime error
Update image_summary.py
Browse files- image_summary.py +15 -2
image_summary.py
CHANGED
@@ -40,8 +40,21 @@ def get_quote(image):
|
|
40 |
|
41 |
#1: Text to Speech
|
42 |
title = "Sentence, listing all the items present in the image file"
|
43 |
-
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
# if __name__ == "__main__":
|
46 |
|
47 |
# demo.launch(debug=True, cache_examples=True)
|
|
|
40 |
|
41 |
#1: Text to Speech
|
42 |
title = "Sentence, listing all the items present in the image file"
|
43 |
+
|
44 |
+
description = "Summary of items in the Image"
|
45 |
+
examples=[["english.png"],["Parag_Letter_j.jpg"]]
|
46 |
+
|
47 |
+
|
48 |
+
|
49 |
+
image_summary_demo = gr.Interface(fn=get_quote,
|
50 |
+
inputs=gr.inputs.Image(type="pil"),
|
51 |
+
outputs=['text'],
|
52 |
+
title = title,
|
53 |
+
description = "Upload an image file and get text from it" ,
|
54 |
+
cache_examples=False,
|
55 |
+
examples=examples,
|
56 |
+
enable_queue=True)
|
57 |
+
|
58 |
# if __name__ == "__main__":
|
59 |
|
60 |
# demo.launch(debug=True, cache_examples=True)
|