dipankardas011 commited on
Commit
8450a77
·
1 Parent(s): 1acab3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,4 +17,4 @@ async def docs_redirect():
17
  def generate(text: str):
18
  output: list[dict] = generator(text, max_length=200, num_return_sequences=1)
19
  print(output)
20
- return output[0]
 
17
  def generate(text: str):
18
  output: list[dict] = generator(text, max_length=200, num_return_sequences=1)
19
  print(output)
20
+ return output[0]["generated_text"]