NoufSaleh46 commited on
Commit
ea634f4
·
verified ·
1 Parent(s): 52fa82b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -10,14 +10,12 @@ def summarize_text(text):
10
  return summary[0]['summary_text']
11
 
12
  #gradio interface
13
-
14
  demo = gr.Interface(
15
- gr.Markdown("#Text Summarization App")
16
- text_input = gr.Textbox(label="Enter your text:", lines=10, placeholder="Paste a long paragraph here...")
17
- summarize_button = gr.Button("Summarize")
18
- output_text = gr.Textbox(label="Summarized Text", lines=3)
19
 
20
- summarize_button.click(summarize_text, inputs=text_input, outputs=output_text)
21
  )
22
 
23
  # Launch the app
 
10
  return summary[0]['summary_text']
11
 
12
  #gradio interface
 
13
  demo = gr.Interface(
14
+ fn=summarize_text,
15
+ inputs=gr.Textbox(label="Enter your text:", lines=10, placeholder="Paste a paragraph here..."),
16
+ outputs=gr.Textbox(label="Summarized Text", lines=3),
17
+ title="Text Summarization App",
18
 
 
19
  )
20
 
21
  # Launch the app