Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -131,12 +131,12 @@ def predict(input_path):
|
|
131 |
print("Improvement done!")
|
132 |
out_image = put_text(improved_text, font, font_scale, color, thickness, max_width, out_image_width, top_margin)
|
133 |
print("Out image generated!")
|
134 |
-
return
|
135 |
|
136 |
gradio_app = gr.Interface(
|
137 |
predict,
|
138 |
-
inputs=gr.Image(sources=['upload', 'webcam'], type='filepath'),
|
139 |
-
outputs=[gr.Image()],
|
140 |
title="Extract Handwritten Text",
|
141 |
)
|
142 |
|
|
|
131 |
print("Improvement done!")
|
132 |
out_image = put_text(improved_text, font, font_scale, color, thickness, max_width, out_image_width, top_margin)
|
133 |
print("Out image generated!")
|
134 |
+
return out_image
|
135 |
|
136 |
gradio_app = gr.Interface(
|
137 |
predict,
|
138 |
+
inputs=gr.Image(label= '', sources=['upload', 'webcam'], type='filepath'),
|
139 |
+
outputs=[gr.Image(abel= '')],
|
140 |
title="Extract Handwritten Text",
|
141 |
)
|
142 |
|