ArmelR commited on
Commit
4e0d0f4
1 Parent(s): ce01d23

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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="StarCoderBase",
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
  )