Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -11,6 +11,7 @@ model = model.eval().cuda()
|
|
11 |
@spaces.GPU
|
12 |
def run_GOT(image_array, got_mode, ocr_box="", ocr_color=""):
|
13 |
print("image_array: ", image_array)
|
|
|
14 |
# image = Image.fromarray(np.uint8(image_array))
|
15 |
image = image_array
|
16 |
if got_mode == "plain texts OCR":
|
|
|
11 |
@spaces.GPU
|
12 |
def run_GOT(image_array, got_mode, ocr_box="", ocr_color=""):
|
13 |
print("image_array: ", image_array)
|
14 |
+
print(got_mode, ' ', ocr_box, ' ', ocr_color)
|
15 |
# image = Image.fromarray(np.uint8(image_array))
|
16 |
image = image_array
|
17 |
if got_mode == "plain texts OCR":
|