Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -135,14 +135,14 @@ def gradio(model, tokenizer):
|
|
| 135 |
repetition_penalty,
|
| 136 |
no_repeat_ngram_size,
|
| 137 |
],
|
| 138 |
-
stop_btn = "🛑 Stop",
|
| 139 |
retry_btn = "🔄 Regenerate",
|
|
|
|
| 140 |
undo_btn = "↩️ Remove last turn",
|
| 141 |
clear_btn = "➕ New conversation",
|
| 142 |
-
examples=[
|
| 143 |
-
"帮我生成一句英文,描述春天的美好。",
|
| 144 |
-
"
|
| 145 |
-
"
|
| 146 |
]]
|
| 147 |
)
|
| 148 |
|
|
|
|
| 135 |
repetition_penalty,
|
| 136 |
no_repeat_ngram_size,
|
| 137 |
],
|
|
|
|
| 138 |
retry_btn = "🔄 Regenerate",
|
| 139 |
+
stop_btn = "🛑 Stop",
|
| 140 |
undo_btn = "↩️ Remove last turn",
|
| 141 |
clear_btn = "➕ New conversation",
|
| 142 |
+
examples=[
|
| 143 |
+
["帮我生成一句英文,描述春天的美好。", 30, 0.9, 0.95, 1.2, 5],
|
| 144 |
+
["Write a poem for me.", 50, 0.8, 0.9, 1.3, 6],
|
| 145 |
+
["Give me some chinese proverbs.", 100, 0.9, 1.0, 1, 5]
|
| 146 |
]]
|
| 147 |
)
|
| 148 |
|