Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,7 +65,7 @@ def generate(
|
|
| 65 |
top_p=0.95,
|
| 66 |
repetition_penalty=1.0,
|
| 67 |
chat_mode="TA prompt",
|
| 68 |
-
version="
|
| 69 |
):
|
| 70 |
|
| 71 |
temperature = float(temperature)
|
|
@@ -152,6 +152,9 @@ def bot(
|
|
| 152 |
top_p=top_p,
|
| 153 |
repetition_penalty=repetition_penalty,
|
| 154 |
chat_mode=chat_mode,
|
|
|
|
|
|
|
|
|
|
| 155 |
)
|
| 156 |
history[-1][1] = bot_message
|
| 157 |
return history
|
|
|
|
| 65 |
top_p=0.95,
|
| 66 |
repetition_penalty=1.0,
|
| 67 |
chat_mode="TA prompt",
|
| 68 |
+
version="StarCoder-gradio",
|
| 69 |
):
|
| 70 |
|
| 71 |
temperature = float(temperature)
|
|
|
|
| 152 |
top_p=top_p,
|
| 153 |
repetition_penalty=repetition_penalty,
|
| 154 |
chat_mode=chat_mode,
|
| 155 |
+
version=version
|
| 156 |
+
|
| 157 |
+
|
| 158 |
)
|
| 159 |
history[-1][1] = bot_message
|
| 160 |
return history
|