Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def clear_cuda_cache():
|
|
31 |
gc.collect()
|
32 |
|
33 |
##############################################################################
|
34 |
-
#
|
35 |
##############################################################################
|
36 |
SERPHOUSE_API_KEY = os.getenv("SERPHOUSE_API_KEY", "")
|
37 |
|
@@ -580,11 +580,93 @@ def run(
|
|
580 |
clear_cuda_cache()
|
581 |
|
582 |
|
583 |
-
|
584 |
##############################################################################
|
585 |
-
# ์์๋ค (AI ๋ฐ์ดํ
|
586 |
##############################################################################
|
587 |
examples = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
588 |
[
|
589 |
{
|
590 |
"text": "Let's try some roleplay. You are my new online date who wants to get to know me better. Introduce yourself in a sweet, caring way!"
|
|
|
31 |
gc.collect()
|
32 |
|
33 |
##############################################################################
|
34 |
+
# SERPHOUSE API key from environment variable
|
35 |
##############################################################################
|
36 |
SERPHOUSE_API_KEY = os.getenv("SERPHOUSE_API_KEY", "")
|
37 |
|
|
|
580 |
clear_cuda_cache()
|
581 |
|
582 |
|
|
|
583 |
##############################################################################
|
584 |
+
# ์์๋ค (๊ธฐ์กด ์ด๋ฏธ์ง/๋น๋์ค ์์ + AI ๋ฐ์ดํ
์๋๋ฆฌ์ค ์์ 6๊ฐ ์ถ๊ฐ)
|
585 |
##############################################################################
|
586 |
examples = [
|
587 |
+
# ----- ๊ธฐ์กด ์ด๋ฏธ์ง/๋น๋์ค ์์ 12๊ฐ -----
|
588 |
+
[
|
589 |
+
{
|
590 |
+
"text": "Compare the contents of the two PDF files.",
|
591 |
+
"files": [
|
592 |
+
"assets/additional-examples/before.pdf",
|
593 |
+
"assets/additional-examples/after.pdf",
|
594 |
+
],
|
595 |
+
}
|
596 |
+
],
|
597 |
+
[
|
598 |
+
{
|
599 |
+
"text": "Summarize and analyze the contents of the CSV file.",
|
600 |
+
"files": ["assets/additional-examples/sample-csv.csv"],
|
601 |
+
}
|
602 |
+
],
|
603 |
+
[
|
604 |
+
{
|
605 |
+
"text": "Assume the role of a friendly and understanding girlfriend. Describe this video.",
|
606 |
+
"files": ["assets/additional-examples/tmp.mp4"],
|
607 |
+
}
|
608 |
+
],
|
609 |
+
[
|
610 |
+
{
|
611 |
+
"text": "Describe the cover and read the text on it.",
|
612 |
+
"files": ["assets/additional-examples/maz.jpg"],
|
613 |
+
}
|
614 |
+
],
|
615 |
+
[
|
616 |
+
{
|
617 |
+
"text": "I already have this supplement <image> and I plan to buy this product <image>. Are there any precautions when taking them together?",
|
618 |
+
"files": ["assets/additional-examples/pill1.png", "assets/additional-examples/pill2.png"],
|
619 |
+
}
|
620 |
+
],
|
621 |
+
[
|
622 |
+
{
|
623 |
+
"text": "Solve this integral.",
|
624 |
+
"files": ["assets/additional-examples/4.png"],
|
625 |
+
}
|
626 |
+
],
|
627 |
+
[
|
628 |
+
{
|
629 |
+
"text": "When was this ticket issued, and what is its price?",
|
630 |
+
"files": ["assets/additional-examples/2.png"],
|
631 |
+
}
|
632 |
+
],
|
633 |
+
[
|
634 |
+
{
|
635 |
+
"text": "Based on the sequence of these images, create a short story.",
|
636 |
+
"files": [
|
637 |
+
"assets/sample-images/09-1.png",
|
638 |
+
"assets/sample-images/09-2.png",
|
639 |
+
"assets/sample-images/09-3.png",
|
640 |
+
"assets/sample-images/09-4.png",
|
641 |
+
"assets/sample-images/09-5.png",
|
642 |
+
],
|
643 |
+
}
|
644 |
+
],
|
645 |
+
[
|
646 |
+
{
|
647 |
+
"text": "Write Python code using matplotlib to plot a bar chart that matches this image.",
|
648 |
+
"files": ["assets/additional-examples/barchart.png"],
|
649 |
+
}
|
650 |
+
],
|
651 |
+
[
|
652 |
+
{
|
653 |
+
"text": "Read the text in the image and write it out in Markdown format.",
|
654 |
+
"files": ["assets/additional-examples/3.png"],
|
655 |
+
}
|
656 |
+
],
|
657 |
+
[
|
658 |
+
{
|
659 |
+
"text": "What does this sign say?",
|
660 |
+
"files": ["assets/sample-images/02.png"],
|
661 |
+
}
|
662 |
+
],
|
663 |
+
[
|
664 |
+
{
|
665 |
+
"text": "Compare the two images and describe their similarities and differences.",
|
666 |
+
"files": ["assets/sample-images/03.png"],
|
667 |
+
}
|
668 |
+
],
|
669 |
+
# ----- ์๋กญ๊ฒ ์ถ๊ฐํ AI ๋ฐ์ดํ
์๋๋ฆฌ์ค ์์ 6๊ฐ -----
|
670 |
[
|
671 |
{
|
672 |
"text": "Let's try some roleplay. You are my new online date who wants to get to know me better. Introduce yourself in a sweet, caring way!"
|