Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -134,7 +134,7 @@ def bot(
|
|
134 |
version="starchat-alpha",
|
135 |
):
|
136 |
# concat history of prompts with answers expect for last empty answer only add prompt
|
137 |
-
if version == "StarCoder-gradio"
|
138 |
prompt = "\n".join(
|
139 |
[f"Question: {prompt}\n\nAnswer: {answer}" for prompt, answer in history[:-1]] + [f"\nQuestion: {history[-1][0]}"]
|
140 |
)
|
@@ -227,7 +227,7 @@ _Note:_ this is an internal chat playground - **please do not share**. The deplo
|
|
227 |
)
|
228 |
version = gr.Dropdown(
|
229 |
["StarCoder-gradio", "StarChat-alpha"],
|
230 |
-
value="
|
231 |
label="Version",
|
232 |
info="",
|
233 |
)
|
|
|
134 |
version="starchat-alpha",
|
135 |
):
|
136 |
# concat history of prompts with answers expect for last empty answer only add prompt
|
137 |
+
if version == "StarCoder-gradio" :
|
138 |
prompt = "\n".join(
|
139 |
[f"Question: {prompt}\n\nAnswer: {answer}" for prompt, answer in history[:-1]] + [f"\nQuestion: {history[-1][0]}"]
|
140 |
)
|
|
|
227 |
)
|
228 |
version = gr.Dropdown(
|
229 |
["StarCoder-gradio", "StarChat-alpha"],
|
230 |
+
value="StarChat-alpha",
|
231 |
label="Version",
|
232 |
info="",
|
233 |
)
|