Spaces:
Sleeping
Sleeping
PunGrumpy
commited on
Commit
Β·
4e79682
1
Parent(s):
6a8a8c9
π fix: change path
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ model="google/flan-t5-small")
|
|
14 |
# The generate() function is defined as a FastAPI route that takes a
|
15 |
# string parameter called text. The function generates text based on the # input using the pipeline() object, and returns a JSON response
|
16 |
# containing the generated text under the key "output"
|
17 |
-
@app.get("/
|
18 |
def generate(text: str):
|
19 |
"""
|
20 |
Using the text2text-generation pipeline from `transformers`, generate text
|
|
|
14 |
# The generate() function is defined as a FastAPI route that takes a
|
15 |
# string parameter called text. The function generates text based on the # input using the pipeline() object, and returns a JSON response
|
16 |
# containing the generated text under the key "output"
|
17 |
+
@app.get("/")
|
18 |
def generate(text: str):
|
19 |
"""
|
20 |
Using the text2text-generation pipeline from `transformers`, generate text
|