ipvikas commited on
Commit
1c7b35a
·
verified ·
1 Parent(s): 0eccb97

Update image_summary.py

Browse files
Files changed (1) hide show
  1. 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
- image_summary_demo = gr.Interface(fn=get_quote, inputs=gr.inputs.Image(type="pil"), outputs=['text'],title = title, description = "Upload an image file and get text from it" ,cache_examples=False, enable_queue=True).launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
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)