Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,6 +11,7 @@ from transformers import pipeline
|
|
11 |
|
12 |
# TEXT SUMMARIZATION
|
13 |
summarizer = pipeline("summarization", model="stevhliu/my_awesome_billsum_model")
|
|
|
14 |
|
15 |
if text:
|
16 |
st.json(summarizer(text))
|
|
|
11 |
|
12 |
# TEXT SUMMARIZATION
|
13 |
summarizer = pipeline("summarization", model="stevhliu/my_awesome_billsum_model")
|
14 |
+
text = st.text_area('Enter a long body of text to summarize:')
|
15 |
|
16 |
if text:
|
17 |
st.json(summarizer(text))
|