text updated
Browse files
app.py
CHANGED
|
@@ -16,9 +16,9 @@ summarizer = pipeline("summarization", model="philschmid/bart-large-cnn-samsum")
|
|
| 16 |
@app.get("/generate")
|
| 17 |
def generate(text: str):
|
| 18 |
"""
|
| 19 |
-
Using the text2text-generation pipeline from `transformers`,
|
| 20 |
-
from the given input text. The model used is `
|
| 21 |
-
can be found [here](<https://huggingface.co/
|
| 22 |
"""
|
| 23 |
# Use the pipeline to generate text from the given input text
|
| 24 |
output = summarizer(conversation)
|
|
|
|
| 16 |
@app.get("/generate")
|
| 17 |
def generate(text: str):
|
| 18 |
"""
|
| 19 |
+
Using the text2text-generation pipeline from `transformers`, summerize text
|
| 20 |
+
from the given input text. The model used is `philschmid/bart-large-cnn-samsum`, which
|
| 21 |
+
can be found [here](<https://huggingface.co/philschmid/bart-large-cnn-samsum>).
|
| 22 |
"""
|
| 23 |
# Use the pipeline to generate text from the given input text
|
| 24 |
output = summarizer(conversation)
|