Subhraj07 commited on
Commit
58c2f16
·
1 Parent(s): eb4bc80

text updated

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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`, generate text
20
- from the given input text. The model used is `google/flan-t5-small`, which
21
- can be found [here](<https://huggingface.co/google/flan-t5-small>).
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)