Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|