Commit
•
52e57aa
1
Parent(s):
ae258ee
Upload app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def home():
|
|
17 |
@app.get("/generate")
|
18 |
def generate(text:str):
|
19 |
## use the pipeline from goven input text
|
20 |
-
output =
|
21 |
|
22 |
## return the generayed text in Json response
|
23 |
return {"output":output[0]['generated_text']}
|
|
|
17 |
@app.get("/generate")
|
18 |
def generate(text:str):
|
19 |
## use the pipeline from goven input text
|
20 |
+
output = pipe(text)
|
21 |
|
22 |
## return the generayed text in Json response
|
23 |
return {"output":output[0]['generated_text']}
|