Spaces:
Running
Running
Update app.py
Browse files
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",
|
| 34 |
-
gr.Textbox(label="Summary",
|
| 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."
|