Spaces:
Runtime error
Runtime error
dipankardas011
commited on
Commit
·
93fc612
1
Parent(s):
5a93f88
Update app.py
Browse files
app.py
CHANGED
@@ -16,4 +16,5 @@ async def docs_redirect():
|
|
16 |
@app.get("/generate")
|
17 |
def generate(text: str):
|
18 |
output: list[dict] = generator(text, max_length=200, num_return_sequences=1)
|
19 |
-
|
|
|
|
16 |
@app.get("/generate")
|
17 |
def generate(text: str):
|
18 |
output: list[dict] = generator(text, max_length=200, num_return_sequences=1)
|
19 |
+
print(output)
|
20 |
+
return {"output": output[0]}
|