Spaces:
Sleeping
Sleeping
Update button_click_alt.py
Browse files- button_click_alt.py +2 -0
button_click_alt.py
CHANGED
|
@@ -5,6 +5,8 @@ import tensorflow as tf
|
|
| 5 |
from tensorflow.keras.preprocessing.image import img_to_array, load_img
|
| 6 |
from process import preprocess_image
|
| 7 |
from PIL import Image
|
|
|
|
|
|
|
| 8 |
|
| 9 |
def infer_text(im):
|
| 10 |
im.save("converted.png")
|
|
|
|
| 5 |
from tensorflow.keras.preprocessing.image import img_to_array, load_img
|
| 6 |
from process import preprocess_image
|
| 7 |
from PIL import Image
|
| 8 |
+
from codecs import encode, decode
|
| 9 |
+
import requests
|
| 10 |
|
| 11 |
def infer_text(im):
|
| 12 |
im.save("converted.png")
|