Spaces:
Runtime error
Runtime error
Commit
·
3703851
1
Parent(s):
b55ce46
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ Once the wool fibers have been carded, they are ready for spinning. Spinning is
|
|
21 |
summarizer = pipeline("summarization", model="philschmid/flan-t5-base-samsum")
|
22 |
|
23 |
def summarize(text):
|
24 |
-
return summarizer(text, max_length=130, min_length=30, do_sample=False)
|
25 |
|
26 |
iface = gr.Interface(
|
27 |
fn=summarize,
|
|
|
21 |
summarizer = pipeline("summarization", model="philschmid/flan-t5-base-samsum")
|
22 |
|
23 |
def summarize(text):
|
24 |
+
return summarizer(text, max_length=130, min_length=30, do_sample=False)['summary_text']
|
25 |
|
26 |
iface = gr.Interface(
|
27 |
fn=summarize,
|