Spaces:
Runtime error
Runtime error
johnnyfivefingers
commited on
Commit
·
9a8d316
1
Parent(s):
a466a28
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ summarizer = pipeline("summarization", model=model_id)
|
|
10 |
|
11 |
def summarize(text):
|
12 |
#return "Summary: " + text
|
13 |
-
out = summarizer(text, max_length=
|
14 |
return "Summary: " + str(out)
|
15 |
|
16 |
iface = gr.Interface(fn=summarize, inputs="text", outputs="text")
|
|
|
10 |
|
11 |
def summarize(text):
|
12 |
#return "Summary: " + text
|
13 |
+
out = summarizer(text, max_length=150, min_length = 20)
|
14 |
return "Summary: " + str(out)
|
15 |
|
16 |
iface = gr.Interface(fn=summarize, inputs="text", outputs="text")
|