dipankardas011 commited on
Commit
93fc612
·
1 Parent(s): 5a93f88

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- return {"output": output[0].generated_text}
 
 
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]}