Spaces:
Runtime error
Runtime error
Commit
·
3cd61f5
1
Parent(s):
8719562
Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,9 @@ Nico: Ahahah
|
|
15 |
"""
|
16 |
|
17 |
text = st.text_area("Enter your chat", value=predefined_text, height=200)
|
|
|
18 |
pipe = pipeline("summarization", model="nicoladisabato/pegasus-samsum")
|
19 |
|
20 |
-
if
|
21 |
out = pipe(text)
|
22 |
st.json(out)
|
|
|
15 |
"""
|
16 |
|
17 |
text = st.text_area("Enter your chat", value=predefined_text, height=200)
|
18 |
+
button = st.button('Summarize')
|
19 |
pipe = pipeline("summarization", model="nicoladisabato/pegasus-samsum")
|
20 |
|
21 |
+
if button:
|
22 |
out = pipe(text)
|
23 |
st.json(out)
|