Amelia-James commited on
Commit
817af55
·
verified ·
1 Parent(s): 8c2f1ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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=15), # Increased input field size
117
- gr.Textbox(label="URL", placeholder="Enter URL here...", lines=2), # Slightly increased 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=15), # Increased 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
  )
 
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
  )