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