Update app.py
Browse files
app.py
CHANGED
|
@@ -36,7 +36,8 @@ def get_result_with_bloom(text):
|
|
| 36 |
max_length=result_length,
|
| 37 |
do_sample=True,
|
| 38 |
top_k=50,
|
| 39 |
-
top_p=0.9
|
|
|
|
| 40 |
)[0])
|
| 41 |
return output1
|
| 42 |
|
|
|
|
| 36 |
max_length=result_length,
|
| 37 |
do_sample=True,
|
| 38 |
top_k=50,
|
| 39 |
+
top_p=0.9,early_stopping=True
|
| 40 |
+
|
| 41 |
)[0])
|
| 42 |
return output1
|
| 43 |
|