Spaces:
Sleeping
Sleeping
Commit
·
7d6c1f7
1
Parent(s):
e092a05
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,8 @@ import gradio as gr
|
|
| 3 |
model = pipeline("summarization")
|
| 4 |
|
| 5 |
def get_input(text):
|
| 6 |
-
summary = model(text,max_length =
|
| 7 |
return summary
|
| 8 |
|
| 9 |
-
iface = gr.Interface(fn=get_input,inputs="text",outputs="text",title = "Text
|
| 10 |
iface.launch()
|
|
|
|
| 3 |
model = pipeline("summarization")
|
| 4 |
|
| 5 |
def get_input(text):
|
| 6 |
+
summary = model(text,max_length =120, min_length = 40,do_sample=False)
|
| 7 |
return summary
|
| 8 |
|
| 9 |
+
iface = gr.Interface(fn=get_input,inputs="text",outputs="text",title = "Text Summarizer",description="Enter your text to get summary")
|
| 10 |
iface.launch()
|