Spaces:
Running
on
Zero
Running
on
Zero
add image editor
Browse files
app.py
CHANGED
@@ -38,10 +38,6 @@ def image_to_base64(image):
|
|
38 |
return base64.b64encode(buffered.getvalue()).decode()
|
39 |
|
40 |
|
41 |
-
|
42 |
-
@spaces.GPU()
|
43 |
-
import cv2
|
44 |
-
|
45 |
@spaces.GPU()
|
46 |
def process_image(image, task, ocr_type=None, ocr_box=None, ocr_color=None):
|
47 |
if image is None:
|
|
|
38 |
return base64.b64encode(buffered.getvalue()).decode()
|
39 |
|
40 |
|
|
|
|
|
|
|
|
|
41 |
@spaces.GPU()
|
42 |
def process_image(image, task, ocr_type=None, ocr_box=None, ocr_color=None):
|
43 |
if image is None:
|