Spaces:
Runtime error
Runtime error
Update chain_app.py
Browse files- chain_app.py +45 -0
chain_app.py
CHANGED
@@ -351,6 +351,51 @@ async def on_chat_start():
|
|
351 |
content="Im the big Llama-3.1!. one of the best open source models released by Meta! i am the Big version of meta's open source LLMs., i was configured by Artin Daneshvar and Sadra Noadoust, 2 iranian students to help you, how can i assist you today ? "
|
352 |
).send()
|
353 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
354 |
if chat_profile == 'Llama-3-70B':
|
355 |
await cl.ChatSettings(
|
356 |
[
|
|
|
351 |
content="Im the big Llama-3.1!. one of the best open source models released by Meta! i am the Big version of meta's open source LLMs., i was configured by Artin Daneshvar and Sadra Noadoust, 2 iranian students to help you, how can i assist you today ? "
|
352 |
).send()
|
353 |
|
354 |
+
if chat_profile == 'Llama-3.1-70B':
|
355 |
+
await cl.ChatSettings(
|
356 |
+
[
|
357 |
+
Select(
|
358 |
+
id="Meta-Model",
|
359 |
+
label="Meta - Model",
|
360 |
+
values=["Llama-3-70B"],
|
361 |
+
initial_index=0,
|
362 |
+
),
|
363 |
+
Slider(
|
364 |
+
id="Temperature",
|
365 |
+
label="Model Temperature",
|
366 |
+
initial=0.7,
|
367 |
+
min=0,
|
368 |
+
max=1,
|
369 |
+
step=0.1,
|
370 |
+
),
|
371 |
+
]
|
372 |
+
).send()
|
373 |
+
await cl.Message(
|
374 |
+
content="Im the second-big Llama-3.1!. one of the best open source models released by Meta! i am the Big version of meta's open source LLMs., i was configured by Artin Daneshvar and Sadra Noadoust, 2 iranian students to help you, how can i assist you today ? "
|
375 |
+
).send()
|
376 |
+
if chat_profile == 'Llama-3.1-8B':
|
377 |
+
await cl.ChatSettings(
|
378 |
+
[
|
379 |
+
Select(
|
380 |
+
id="Meta-Model",
|
381 |
+
label="Meta - Model",
|
382 |
+
values=["Llama-3-70B"],
|
383 |
+
initial_index=0,
|
384 |
+
),
|
385 |
+
Slider(
|
386 |
+
id="Temperature",
|
387 |
+
label="Model Temperature",
|
388 |
+
initial=0.7,
|
389 |
+
min=0,
|
390 |
+
max=1,
|
391 |
+
step=0.1,
|
392 |
+
),
|
393 |
+
]
|
394 |
+
).send()
|
395 |
+
await cl.Message(
|
396 |
+
content="Im the small Llama-3.1!. one of the best open source models released by Meta! i am the Big version of meta's open source LLMs., i was configured by Artin Daneshvar and Sadra Noadoust, 2 iranian students to help you, how can i assist you today ? "
|
397 |
+
).send()
|
398 |
+
|
399 |
if chat_profile == 'Llama-3-70B':
|
400 |
await cl.ChatSettings(
|
401 |
[
|