Egor commited on
Commit
eefef1f
1 Parent(s): b8ad02e
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def generate(text: str):
22
  can be found [here](<https://huggingface.co/google/flan-t5-small>).
23
  """
24
  # Use the pipeline to generate text from the given input text
25
- output = text + pipe(text)
26
 
27
  # Return the generated text in a JSON response
28
  return {"output": output[0]["generated_text"]}
 
22
  can be found [here](<https://huggingface.co/google/flan-t5-small>).
23
  """
24
  # Use the pipeline to generate text from the given input text
25
+ output = pipe(text)
26
 
27
  # Return the generated text in a JSON response
28
  return {"output": output[0]["generated_text"]}