John6666 commited on
Commit
b901de9
·
verified ·
1 Parent(s): ee4073b

Upload llmdolphin.py

Browse files
Files changed (1) hide show
  1. llmdolphin.py +3 -5
llmdolphin.py CHANGED
@@ -1288,10 +1288,8 @@ def get_dolphin_sysprompt_mode():
1288
 
1289
  def select_dolphin_sysprompt(key: str, state: dict):
1290
  dolphin_sysprompt_mode = get_state(state, "dolphin_sysprompt_mode")
1291
- if not key in dolphin_system_prompt.keys():
1292
- dolphin_sysprompt_mode = "Default"
1293
- else:
1294
- dolphin_sysprompt_mode = key
1295
  set_state(state, "dolphin_sysprompt_mode", dolphin_sysprompt_mode)
1296
  return gr.update(value=get_dolphin_sysprompt(state)), state
1297
 
@@ -1302,7 +1300,7 @@ def get_dolphin_languages():
1302
 
1303
  def select_dolphin_language(lang: str, state: dict):
1304
  set_state(state, "dolphin_output_language", lang)
1305
- return gr.update(value=get_dolphin_sysprompt()), state
1306
 
1307
 
1308
  @wrapt_timeout_decorator.timeout(dec_timeout=5.0)
 
1288
 
1289
  def select_dolphin_sysprompt(key: str, state: dict):
1290
  dolphin_sysprompt_mode = get_state(state, "dolphin_sysprompt_mode")
1291
+ if not key in dolphin_system_prompt.keys(): dolphin_sysprompt_mode = "Default"
1292
+ else: dolphin_sysprompt_mode = key
 
 
1293
  set_state(state, "dolphin_sysprompt_mode", dolphin_sysprompt_mode)
1294
  return gr.update(value=get_dolphin_sysprompt(state)), state
1295
 
 
1300
 
1301
  def select_dolphin_language(lang: str, state: dict):
1302
  set_state(state, "dolphin_output_language", lang)
1303
+ return gr.update(value=get_dolphin_sysprompt(state)), state
1304
 
1305
 
1306
  @wrapt_timeout_decorator.timeout(dec_timeout=5.0)