Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -127,7 +127,7 @@ def test_error( images, x_mask):
|
|
127 |
'''frame_one = frames[0]
|
128 |
frame_one.save("/content/gdrive/My Drive/CALText_Demo/'vis.gif", format="GIF", append_images=frames,save_all=True, duration=300, loop=0)
|
129 |
gif_image="/content/gdrive/My Drive/CALText_Demo/'vis.gif"'''
|
130 |
-
return outstr
|
131 |
|
132 |
|
133 |
|
@@ -145,8 +145,8 @@ import gradio as gr
|
|
145 |
|
146 |
def recognize_text(input_image):
|
147 |
x, x_mask=preprocess_img(input_image)
|
148 |
-
output_str
|
149 |
-
return output_str
|
150 |
|
151 |
|
152 |
title = "CALText Demo"
|
|
|
127 |
'''frame_one = frames[0]
|
128 |
frame_one.save("/content/gdrive/My Drive/CALText_Demo/'vis.gif", format="GIF", append_images=frames,save_all=True, duration=300, loop=0)
|
129 |
gif_image="/content/gdrive/My Drive/CALText_Demo/'vis.gif"'''
|
130 |
+
return outstr
|
131 |
|
132 |
|
133 |
|
|
|
145 |
|
146 |
def recognize_text(input_image):
|
147 |
x, x_mask=preprocess_img(input_image)
|
148 |
+
output_str=test_error(x, x_mask)
|
149 |
+
return output_str
|
150 |
|
151 |
|
152 |
title = "CALText Demo"
|