prans-cs55 commited on
Commit
5b0e3c6
·
verified ·
1 Parent(s): bcd6f13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,8 +30,8 @@ interface = gr.Interface(
30
  fn=extract_and_summarize,
31
  inputs=gr.Image(type="pil", label="Upload Image"),
32
  outputs=[
33
- gr.Textbox(label="Extracted Text",lines=12, max_lines=200),
34
- gr.Textbox(label="Summary",lines=12, max_lines=200),
35
  ],
36
  title="🧠 OCR Text Extractor + Summarizer",
37
  description="Upload an image with text — it extracts the text using Tesseract OCR and summarizes it using a transformer model."
 
30
  fn=extract_and_summarize,
31
  inputs=gr.Image(type="pil", label="Upload Image"),
32
  outputs=[
33
+ gr.Textbox(label="Extracted Text",scale=5),
34
+ gr.Textbox(label="Summary",scale=5),
35
  ],
36
  title="🧠 OCR Text Extractor + Summarizer",
37
  description="Upload an image with text — it extracts the text using Tesseract OCR and summarizes it using a transformer model."