Spaces:
Runtime error
Runtime error
Commit
·
c3997fb
1
Parent(s):
a53bd8d
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,16 +9,17 @@ x = st.slider('Select a value')
|
|
| 9 |
st.write(x, 'squared is', x * x)
|
| 10 |
img = PIL.Image.open("dummy.jpg")
|
| 11 |
|
| 12 |
-
|
|
|
|
| 13 |
|
| 14 |
|
| 15 |
#url = 'https://fki.tic.heia-fr.ch/static/img/a01-122-02-00.jpg'
|
| 16 |
-
#img = PIL.Image.open("dummy.jpg")
|
| 17 |
-
#print(img)
|
| 18 |
-
#bound = reader.readtext(img)
|
| 19 |
-
#print(bound)
|
| 20 |
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
|
| 24 |
|
|
|
|
| 9 |
st.write(x, 'squared is', x * x)
|
| 10 |
img = PIL.Image.open("dummy.jpg")
|
| 11 |
|
| 12 |
+
print("fetched image")
|
| 13 |
+
reader = easyocr.Reader(['en'])
|
| 14 |
|
| 15 |
|
| 16 |
#url = 'https://fki.tic.heia-fr.ch/static/img/a01-122-02-00.jpg'
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
+
|
| 19 |
+
bound = reader.readtext(img)
|
| 20 |
+
print(bound)
|
| 21 |
+
print("Completed")
|
| 22 |
+
|
| 23 |
|
| 24 |
|
| 25 |
|