this
Browse files
app.py
CHANGED
|
@@ -5,10 +5,10 @@ from transformers import pipeline
|
|
| 5 |
|
| 6 |
|
| 7 |
summarizer = pipeline("summarization")
|
| 8 |
-
summarizer("An apple a day, keeps the doctor away", min_length=5, max_length=
|
| 9 |
|
| 10 |
if query := st.chat_input("Summarize: "):
|
| 11 |
-
ans = summarizer(query, min_length=5, max_length=
|
| 12 |
with st.chat_message("User"):
|
| 13 |
st.write(ans)
|
| 14 |
|
|
|
|
| 5 |
|
| 6 |
|
| 7 |
summarizer = pipeline("summarization")
|
| 8 |
+
summarizer("An apple a day, keeps the doctor away", min_length=5, max_length=30)
|
| 9 |
|
| 10 |
if query := st.chat_input("Summarize: "):
|
| 11 |
+
ans = summarizer(query, min_length=5, max_length=30)
|
| 12 |
with st.chat_message("User"):
|
| 13 |
st.write(ans)
|
| 14 |
|