ipvikas commited on
Commit
bae5024
·
1 Parent(s): ebb6544

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -28,7 +28,11 @@ model = VisionEncoderDecoderModel.from_pretrained(repo_name)
28
  def get_quote(image_1):
29
  #reader = easyocr.Reader(['en'])
30
  #image = Image.open(image_1,mode = 'r')
31
- image = Image.open(image_1)
 
 
 
 
32
 
33
 
34
 
 
28
  def get_quote(image_1):
29
  #reader = easyocr.Reader(['en'])
30
  #image = Image.open(image_1,mode = 'r')
31
+ #image = Image.open(image_1)
32
+
33
+ image = Image.open(requests.get(image_1, stream=True).raw)
34
+ #image.save("cats.png")
35
+ #image
36
 
37
 
38