Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -17,10 +17,10 @@ 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['7B-Lite (beta)'] = [
|
21 |
-
OpenAI(api_key=token, base_url=os.getenv('RUADAPT_LITE_PATH')),
|
22 |
-
requests.get(os.getenv('RUADAPT_LITE_PATH') + '/models', headers={"Authorization": f"Bearer {token}"}).json()['data'][0]['id']
|
23 |
-
]
|
24 |
#except:
|
25 |
# pass
|
26 |
|
@@ -90,7 +90,7 @@ def respond(
|
|
90 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
91 |
"""
|
92 |
options = ["32B-Pro (beta)", "7B-Lite (beta)", "32B QWQ (experimental, without any additional tuning after LEP!)", "7B (work in progress)", "3B"]
|
93 |
-
options = options[:
|
94 |
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."
|
95 |
system_new = "Ты Руадапт - полезный и дружелюбный интеллектуальный ассистент для помощи пользователям в их вопросах."
|
96 |
system_new2 = "Ты — Руадапт, русскоязычный автоматический ассистент. Ты разговариваешь с людьми и помогаешь им."
|
|
|
17 |
requests.get(os.getenv('RUADAPT_PRO_PATH') + '/models', headers={"Authorization": f"Bearer {token}"}).json()['data'][0]['id']
|
18 |
]
|
19 |
|
20 |
+
#clients['7B-Lite (beta)'] = [
|
21 |
+
# OpenAI(api_key=token, base_url=os.getenv('RUADAPT_LITE_PATH')),
|
22 |
+
# requests.get(os.getenv('RUADAPT_LITE_PATH') + '/models', headers={"Authorization": f"Bearer {token}"}).json()['data'][0]['id']
|
23 |
+
#]
|
24 |
#except:
|
25 |
# pass
|
26 |
|
|
|
90 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
91 |
"""
|
92 |
options = ["32B-Pro (beta)", "7B-Lite (beta)", "32B QWQ (experimental, without any additional tuning after LEP!)", "7B (work in progress)", "3B"]
|
93 |
+
options = options[:1]
|
94 |
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."
|
95 |
system_new = "Ты Руадапт - полезный и дружелюбный интеллектуальный ассистент для помощи пользователям в их вопросах."
|
96 |
system_new2 = "Ты — Руадапт, русскоязычный автоматический ассистент. Ты разговариваешь с людьми и помогаешь им."
|