DmitryYarov commited on
Commit
2889b7f
·
verified ·
1 Parent(s): 97f5e89

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ def predict(prompt):
27
  top_k=50, # Limit sampling to top-K probabilities
28
  top_p=0.95, # Limit sampling to top-P probabilities (nucleus sampling)
29
  truncation=True # Truncate text if it exceeds max length
30
- )
31
 
32
  return completions
33
 
 
27
  top_k=50, # Limit sampling to top-K probabilities
28
  top_p=0.95, # Limit sampling to top-P probabilities (nucleus sampling)
29
  truncation=True # Truncate text if it exceeds max length
30
+ )[0]["generated_text"]
31
 
32
  return completions
33