Spaces:
Runtime error
Runtime error
Update chain_app.py
Browse files- chain_app.py +4 -4
chain_app.py
CHANGED
@@ -195,7 +195,7 @@ async def chat_profile():
|
|
195 |
markdown_description="Open Source model Zephyr with 7B parameters",
|
196 |
),
|
197 |
cl.ChatProfile(
|
198 |
-
name='
|
199 |
markdown_description = 'mistral open source LLM with 7B parameters'
|
200 |
),
|
201 |
# cl.ChatProfile(
|
@@ -1028,13 +1028,13 @@ async def on_chat_start():
|
|
1028 |
await cl.Message(
|
1029 |
content="Im Zephyr. One of the best open source LLMs. i was configured by Artin Daneshvar and Sadra Noadoust, 2 iranian students to help you, how can i assist you today ? "
|
1030 |
).send()
|
1031 |
-
if chat_profile == '
|
1032 |
await cl.ChatSettings(
|
1033 |
[
|
1034 |
Select(
|
1035 |
id="Mistral-Model",
|
1036 |
label="Mistral - Model",
|
1037 |
-
values=["
|
1038 |
initial_index=0,
|
1039 |
),
|
1040 |
Slider(
|
@@ -1546,7 +1546,7 @@ async def main(message: cl.Message):
|
|
1546 |
content=model_response
|
1547 |
).send()
|
1548 |
|
1549 |
-
elif chat_profile == '
|
1550 |
completion = groq_client.chat.completions.create(
|
1551 |
model="mixtral-8x7b-32768",
|
1552 |
messages=[
|
|
|
195 |
markdown_description="Open Source model Zephyr with 7B parameters",
|
196 |
),
|
197 |
cl.ChatProfile(
|
198 |
+
name='mixtral-8x7B',
|
199 |
markdown_description = 'mistral open source LLM with 7B parameters'
|
200 |
),
|
201 |
# cl.ChatProfile(
|
|
|
1028 |
await cl.Message(
|
1029 |
content="Im Zephyr. One of the best open source LLMs. i was configured by Artin Daneshvar and Sadra Noadoust, 2 iranian students to help you, how can i assist you today ? "
|
1030 |
).send()
|
1031 |
+
if chat_profile == 'mixtral-8x7B':
|
1032 |
await cl.ChatSettings(
|
1033 |
[
|
1034 |
Select(
|
1035 |
id="Mistral-Model",
|
1036 |
label="Mistral - Model",
|
1037 |
+
values=["mixtral-8x7B"],
|
1038 |
initial_index=0,
|
1039 |
),
|
1040 |
Slider(
|
|
|
1546 |
content=model_response
|
1547 |
).send()
|
1548 |
|
1549 |
+
elif chat_profile == 'mixtral-8x7B':
|
1550 |
completion = groq_client.chat.completions.create(
|
1551 |
model="mixtral-8x7b-32768",
|
1552 |
messages=[
|