Spaces:
Sleeping
Sleeping
Egor
commited on
Commit
•
eefef1f
1
Parent(s):
b8ad02e
fixed app
Browse files
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 =
|
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"]}
|