RefalMachine commited on
Commit
7665893
·
verified ·
1 Parent(s): 4f20f3e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,7 +17,7 @@ clients['32B-Pro (beta)'] = [
17
  requests.get(os.getenv('RUADAPT_PRO_PATH') + '/models', headers={"Authorization": f"Bearer {token}"}).json()['data'][0]['id']
18
  ]
19
 
20
- clients['32B-QWQ (preview)'] = [
21
  OpenAI(api_key=token, base_url=os.getenv('RUADAPT_QWQ_PATH')),
22
  requests.get(os.getenv('RUADAPT_QWQ_PATH') + '/models', headers={"Authorization": f"Bearer {token}"}).json()['data'][0]['id']
23
  ]
@@ -108,7 +108,7 @@ def respond(
108
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
109
  """
110
  options = ["32B-Pro (beta)", '32B-QWQ (preview)', '32B-FUSE-O1 (preview)', "32B QWQ (experimental, without any additional tuning after LEP!)", "7B (work in progress)", "3B"]
111
- options = options[1:3]
112
  system_old = "You are a helpful and harmless assistant. You should think step-by-step. First, reason (the user does not see your reasoning), then give your final answer."
113
  system_new = "Ты Руадапт - полезный и дружелюбный интеллектуальный ассистент для помощи пользователям в их вопросах."
114
  system_new2 = "Ты — Руадапт, русскоязычный автоматический ассистент. Ты разговариваешь с людьми и помогаешь им."
 
17
  requests.get(os.getenv('RUADAPT_PRO_PATH') + '/models', headers={"Authorization": f"Bearer {token}"}).json()['data'][0]['id']
18
  ]
19
 
20
+ clients['32B-QWQ'] = [
21
  OpenAI(api_key=token, base_url=os.getenv('RUADAPT_QWQ_PATH')),
22
  requests.get(os.getenv('RUADAPT_QWQ_PATH') + '/models', headers={"Authorization": f"Bearer {token}"}).json()['data'][0]['id']
23
  ]
 
108
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
109
  """
110
  options = ["32B-Pro (beta)", '32B-QWQ (preview)', '32B-FUSE-O1 (preview)', "32B QWQ (experimental, without any additional tuning after LEP!)", "7B (work in progress)", "3B"]
111
+ options = options[1:2]
112
  system_old = "You are a helpful and harmless assistant. You should think step-by-step. First, reason (the user does not see your reasoning), then give your final answer."
113
  system_new = "Ты Руадапт - полезный и дружелюбный интеллектуальный ассистент для помощи пользователям в их вопросах."
114
  system_new2 = "Ты — Руадапт, русскоязычный автоматический ассистент. Ты разговариваешь с людьми и помогаешь им."