Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
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 |
-
|
|
|
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()
|