madhavkotecha commited on
Commit
a066c85
1 Parent(s): b7dfd46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -186,8 +186,8 @@ interface = gr.Interface(
186
  inputs=gr.Image(type="pil"), # Expect an image input
187
  outputs=[
188
  gr.Image(type="pil", label="Bounding Box Image"),
189
- gr.Textbox(label="Extracted Text"),
190
- gr.Textbox(label="Post Processed Text"),
191
  ],
192
  title="OCR Pipeline with YOLO, TrOCR and Roberta",
193
  description="Upload an image to detect text regions with YOLO, merge bounding boxes, and extract text using TrOCR which is then preprocessed with Roberta for contextual understanding.",
@@ -195,4 +195,4 @@ interface = gr.Interface(
195
 
196
  # Launch the interface
197
  if __name__ == "__main__":
198
- interface.launch()
 
186
  inputs=gr.Image(type="pil"), # Expect an image input
187
  outputs=[
188
  gr.Image(type="pil", label="Bounding Box Image"),
189
+ gr.Textbox(label="Extracted Text (Custom trained YOLO Object Detection + TrOCR Vision Transformer)"),
190
+ gr.Textbox(label="Post Processed Text (BLEU score based filtering + Roberta contextual understanding)"),
191
  ],
192
  title="OCR Pipeline with YOLO, TrOCR and Roberta",
193
  description="Upload an image to detect text regions with YOLO, merge bounding boxes, and extract text using TrOCR which is then preprocessed with Roberta for contextual understanding.",
 
195
 
196
  # Launch the interface
197
  if __name__ == "__main__":
198
+ interface.launch(share=True)