BilalHasan commited on
Commit
60f1f6e
·
verified ·
1 Parent(s): d8dadc4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 out_img
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