Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -113,12 +113,12 @@ def process_input(text=None, url=None, file=None, length_ratio=0.25):
|
|
| 113 |
interface = gr.Interface(
|
| 114 |
fn=process_input,
|
| 115 |
inputs=[
|
| 116 |
-
gr.Textbox(label="Input Text", placeholder="Enter text here...", lines=
|
| 117 |
-
gr.Textbox(label="URL", placeholder="Enter URL here...", lines=2), #
|
| 118 |
gr.File(label="Upload a file (PDF or DOCX)"),
|
| 119 |
gr.Slider(label="Summary Length Ratio (as a fraction of the original)", minimum=0.1, maximum=1.0, step=0.05, value=0.25)
|
| 120 |
],
|
| 121 |
-
outputs=gr.Textbox(label="Summary", lines=
|
| 122 |
title="Text Summarization Tool",
|
| 123 |
description="Enter text, paste a URL, or upload a PDF/DOCX file to generate a summary. Adjust the summary length with the slider."
|
| 124 |
)
|
|
|
|
| 113 |
interface = gr.Interface(
|
| 114 |
fn=process_input,
|
| 115 |
inputs=[
|
| 116 |
+
gr.Textbox(label="Input Text", placeholder="Enter text here...", lines=10), # Adjusted input field size
|
| 117 |
+
gr.Textbox(label="URL", placeholder="Enter URL here...", lines=2), # Adjusted URL field size
|
| 118 |
gr.File(label="Upload a file (PDF or DOCX)"),
|
| 119 |
gr.Slider(label="Summary Length Ratio (as a fraction of the original)", minimum=0.1, maximum=1.0, step=0.05, value=0.25)
|
| 120 |
],
|
| 121 |
+
outputs=gr.Textbox(label="Summary", lines=20), # Adjusted output field size
|
| 122 |
title="Text Summarization Tool",
|
| 123 |
description="Enter text, paste a URL, or upload a PDF/DOCX file to generate a summary. Adjust the summary length with the slider."
|
| 124 |
)
|