Update app.py
Browse files
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 |
|