Spaces:
Runtime error
Runtime error
Update chain_app.py
Browse files- chain_app.py +253 -0
chain_app.py
CHANGED
@@ -376,6 +376,259 @@ async def on_chat_start():
|
|
376 |
content="Im TTS. of the best models OpenAI ever created. i can convert text to speech! . i was configured by Artin Daneshvar and Sadra Noadoust, 2 iranian students to help you, how can i assist you today ? "
|
377 |
).send()
|
378 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
379 |
if chat_profile == 'Llama-3.1-405B':
|
380 |
await cl.ChatSettings(
|
381 |
[
|
|
|
376 |
content="Im TTS. of the best models OpenAI ever created. i can convert text to speech! . i was configured by Artin Daneshvar and Sadra Noadoust, 2 iranian students to help you, how can i assist you today ? "
|
377 |
).send()
|
378 |
|
379 |
+
if chat_profile == 'Qwen2-57B':
|
380 |
+
await cl.ChatSettings(
|
381 |
+
[
|
382 |
+
Select(
|
383 |
+
id="Qwen-Model",
|
384 |
+
label="Qwen - Model",
|
385 |
+
values=["Qwen2-57B"],
|
386 |
+
initial_index=0,
|
387 |
+
),
|
388 |
+
Slider(
|
389 |
+
id="Temperature",
|
390 |
+
label="Model Temperature",
|
391 |
+
initial=0.7,
|
392 |
+
min=0,
|
393 |
+
max=1,
|
394 |
+
step=0.1,
|
395 |
+
),
|
396 |
+
]
|
397 |
+
).send()
|
398 |
+
await cl.Message(
|
399 |
+
content='Im Qwen's second generation second large model and i am configured by two iranian boys Artin Daneshvar and Sadra Noadoust to help you out!,
|
400 |
+
).send()
|
401 |
+
|
402 |
+
if chat_profile == 'Qwen2-7B':
|
403 |
+
await cl.ChatSettings(
|
404 |
+
[
|
405 |
+
Select(
|
406 |
+
id="Qwen-Model",
|
407 |
+
label="Qwen - Model",
|
408 |
+
values=["Qwen2-7B"],
|
409 |
+
initial_index=0,
|
410 |
+
),
|
411 |
+
Slider(
|
412 |
+
id="Temperature",
|
413 |
+
label="Model Temperature",
|
414 |
+
initial=0.7,
|
415 |
+
min=0,
|
416 |
+
max=1,
|
417 |
+
step=0.1,
|
418 |
+
),
|
419 |
+
]
|
420 |
+
).send()
|
421 |
+
await cl.Message(
|
422 |
+
content='Im Qwen's second generation third large model and i am configured by two iranian boys Artin Daneshvar and Sadra Noadoust to help you out!,
|
423 |
+
).send()
|
424 |
+
|
425 |
+
if chat_profile == 'Qwen2-1.5B':
|
426 |
+
await cl.ChatSettings(
|
427 |
+
[
|
428 |
+
Select(
|
429 |
+
id="Qwen-Model",
|
430 |
+
label="Qwen - Model",
|
431 |
+
values=["Qwen2-1.5B"],
|
432 |
+
initial_index=0,
|
433 |
+
),
|
434 |
+
Slider(
|
435 |
+
id="Temperature",
|
436 |
+
label="Model Temperature",
|
437 |
+
initial=0.7,
|
438 |
+
min=0,
|
439 |
+
max=1,
|
440 |
+
step=0.1,
|
441 |
+
),
|
442 |
+
]
|
443 |
+
).send()
|
444 |
+
await cl.Message(
|
445 |
+
content='Im Qwen's second generation small model and i am configured by two iranian boys Artin Daneshvar and Sadra Noadoust to help you out!,
|
446 |
+
).send()
|
447 |
+
|
448 |
+
if chat_profile == 'Qwen2-0.5B':
|
449 |
+
await cl.ChatSettings(
|
450 |
+
[
|
451 |
+
Select(
|
452 |
+
id="Qwen-Model",
|
453 |
+
label="Qwen - Model",
|
454 |
+
values=["Qwen2-0.5B"],
|
455 |
+
initial_index=0,
|
456 |
+
),
|
457 |
+
Slider(
|
458 |
+
id="Temperature",
|
459 |
+
label="Model Temperature",
|
460 |
+
initial=0.7,
|
461 |
+
min=0,
|
462 |
+
max=1,
|
463 |
+
step=0.1,
|
464 |
+
),
|
465 |
+
]
|
466 |
+
).send()
|
467 |
+
await cl.Message(
|
468 |
+
content='Im Qwen's second generation small model and i am configured by two iranian boys Artin Daneshvar and Sadra Noadoust to help you out!,
|
469 |
+
).send()
|
470 |
+
|
471 |
+
if chat_profile == 'Qwen1.5-110B':
|
472 |
+
await cl.ChatSettings(
|
473 |
+
[
|
474 |
+
Select(
|
475 |
+
id="Qwen-Model",
|
476 |
+
label="Qwen - Model",
|
477 |
+
values=["Qwen1.5-110B"],
|
478 |
+
initial_index=0,
|
479 |
+
),
|
480 |
+
Slider(
|
481 |
+
id="Temperature",
|
482 |
+
label="Model Temperature",
|
483 |
+
initial=0.7,
|
484 |
+
min=0,
|
485 |
+
max=1,
|
486 |
+
step=0.1,
|
487 |
+
),
|
488 |
+
]
|
489 |
+
).send()
|
490 |
+
await cl.Message(
|
491 |
+
content='Im Qwen's 1.5th generation Large model and i am configured by two iranian boys Artin Daneshvar and Sadra Noadoust to help you out!,
|
492 |
+
).send()
|
493 |
+
|
494 |
+
if chat_profile == 'Qwen1.5-72B':
|
495 |
+
await cl.ChatSettings(
|
496 |
+
[
|
497 |
+
Select(
|
498 |
+
id="Qwen-Model",
|
499 |
+
label="Qwen - Model",
|
500 |
+
values=["Qwen1.5-72B"],
|
501 |
+
initial_index=0,
|
502 |
+
),
|
503 |
+
Slider(
|
504 |
+
id="Temperature",
|
505 |
+
label="Model Temperature",
|
506 |
+
initial=0.7,
|
507 |
+
min=0,
|
508 |
+
max=1,
|
509 |
+
step=0.1,
|
510 |
+
),
|
511 |
+
]
|
512 |
+
).send()
|
513 |
+
await cl.Message(
|
514 |
+
content='Im Qwen's 1.5th generation second Large model and i am configured by two iranian boys Artin Daneshvar and Sadra Noadoust to help you out!,
|
515 |
+
).send()
|
516 |
+
|
517 |
+
if chat_profile == 'Qwen1.5-32B':
|
518 |
+
await cl.ChatSettings(
|
519 |
+
[
|
520 |
+
Select(
|
521 |
+
id="Qwen-Model",
|
522 |
+
label="Qwen - Model",
|
523 |
+
values=["Qwen1.5-32B"],
|
524 |
+
initial_index=0,
|
525 |
+
),
|
526 |
+
Slider(
|
527 |
+
id="Temperature",
|
528 |
+
label="Model Temperature",
|
529 |
+
initial=0.7,
|
530 |
+
min=0,
|
531 |
+
max=1,
|
532 |
+
step=0.1,
|
533 |
+
),
|
534 |
+
]
|
535 |
+
).send()
|
536 |
+
await cl.Message(
|
537 |
+
content='Im Qwen's 1.5th generation third Large model and i am configured by two iranian boys Artin Daneshvar and Sadra Noadoust to help you out!,
|
538 |
+
).send()
|
539 |
+
|
540 |
+
if chat_profile == 'Qwen1.5-2.7B':
|
541 |
+
await cl.ChatSettings(
|
542 |
+
[
|
543 |
+
Select(
|
544 |
+
id="Qwen-Model",
|
545 |
+
label="Qwen - Model",
|
546 |
+
values=["Qwen1.5-2.7B"],
|
547 |
+
initial_index=0,
|
548 |
+
),
|
549 |
+
Slider(
|
550 |
+
id="Temperature",
|
551 |
+
label="Model Temperature",
|
552 |
+
initial=0.7,
|
553 |
+
min=0,
|
554 |
+
max=1,
|
555 |
+
step=0.1,
|
556 |
+
),
|
557 |
+
]
|
558 |
+
).send()
|
559 |
+
await cl.Message(
|
560 |
+
content='Im Qwen's 1.5th generation small model and i am configured by two iranian boys Artin Daneshvar and Sadra Noadoust to help you out!,
|
561 |
+
).send()
|
562 |
+
|
563 |
+
if chat_profile == 'Qwen-72B':
|
564 |
+
await cl.ChatSettings(
|
565 |
+
[
|
566 |
+
Select(
|
567 |
+
id="Qwen-Model",
|
568 |
+
label="Qwen - Model",
|
569 |
+
values=["Qwen-72B"],
|
570 |
+
initial_index=0,
|
571 |
+
),
|
572 |
+
Slider(
|
573 |
+
id="Temperature",
|
574 |
+
label="Model Temperature",
|
575 |
+
initial=0.7,
|
576 |
+
min=0,
|
577 |
+
max=1,
|
578 |
+
step=0.1,
|
579 |
+
),
|
580 |
+
]
|
581 |
+
).send()
|
582 |
+
await cl.Message(
|
583 |
+
content='Im Qwen's open source Ai model and i am configured by two iranian boys Artin Daneshvar and Sadra Noadoust to help you out!,
|
584 |
+
).send()
|
585 |
+
|
586 |
+
if chat_profile == 'Qwen-14B':
|
587 |
+
await cl.ChatSettings(
|
588 |
+
[
|
589 |
+
Select(
|
590 |
+
id="Qwen-Model",
|
591 |
+
label="Qwen - Model",
|
592 |
+
values=["Qwen-14B"],
|
593 |
+
initial_index=0,
|
594 |
+
),
|
595 |
+
Slider(
|
596 |
+
id="Temperature",
|
597 |
+
label="Model Temperature",
|
598 |
+
initial=0.7,
|
599 |
+
min=0,
|
600 |
+
max=1,
|
601 |
+
step=0.1,
|
602 |
+
),
|
603 |
+
]
|
604 |
+
).send()
|
605 |
+
await cl.Message(
|
606 |
+
content='Im Qwen's open source Ai model and i am configured by two iranian boys Artin Daneshvar and Sadra Noadoust to help you out!,
|
607 |
+
).send()
|
608 |
+
|
609 |
+
if chat_profile == 'Qwen-7B':
|
610 |
+
await cl.ChatSettings(
|
611 |
+
[
|
612 |
+
Select(
|
613 |
+
id="Qwen-Model",
|
614 |
+
label="Qwen - Model",
|
615 |
+
values=["Qwen-7B"],
|
616 |
+
initial_index=0,
|
617 |
+
),
|
618 |
+
Slider(
|
619 |
+
id="Temperature",
|
620 |
+
label="Model Temperature",
|
621 |
+
initial=0.7,
|
622 |
+
min=0,
|
623 |
+
max=1,
|
624 |
+
step=0.1,
|
625 |
+
),
|
626 |
+
]
|
627 |
+
).send()
|
628 |
+
await cl.Message(
|
629 |
+
content='Im Qwen's open source Ai model and i am configured by two iranian boys Artin Daneshvar and Sadra Noadoust to help you out!,
|
630 |
+
).send()
|
631 |
+
|
632 |
if chat_profile == 'Llama-3.1-405B':
|
633 |
await cl.ChatSettings(
|
634 |
[
|