astro21 commited on
Commit
e02cc8f
·
1 Parent(s): 44c0da5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -9,11 +9,6 @@ def summarize_text(input_text):
9
  summarized_text = summarizer(input_text, max_length=128, min_length=64, do_sample=False, wait_for_model=True)
10
  return summarized_text[0]['summary_text']
11
 
12
- iface = gr.Interface(
13
- fn=summarize_text,
14
- inputs=gr.inputs.Textbox(lines = 10 , label="Enter the text to summarize"),
15
- outputs=gr.outputs.Textbox(lines = 10 ,label="Summarized Text"),
16
- title="Text Summarizer",
17
- )
18
 
19
- iface.launch()
 
9
  summarized_text = summarizer(input_text, max_length=128, min_length=64, do_sample=False, wait_for_model=True)
10
  return summarized_text[0]['summary_text']
11
 
12
+ demo = gr.Interface(fn= summarize_text , inputs="text", outputs="text")
 
 
 
 
 
13
 
14
+ demo.launch()