Spaces:
Running
on
Zero
Running
on
Zero
NGUYEN, Xuan Phi
commited on
Commit
•
a273e68
1
Parent(s):
c8aed7a
update
Browse files
multipurpose_chatbot/configs.py
CHANGED
@@ -71,11 +71,11 @@ SeaLLMs - Large Language Models for Southeast Asia
|
|
71 |
# <a href='https://arxiv.org/pdf/2312.00738.pdf'><img class="tag" src='https://img.shields.io/badge/Paper-red'></a>
|
72 |
# </div>
|
73 |
MODEL_DESC = f"""
|
74 |
-
<span style="font-size:
|
75 |
<a href="https://huggingface.co/SeaLLMs/SeaLLM-7B-v2.5" target="_blank">SeaLLM-7B-v2.5</a> - a helpful assistant for Southeast Asian Languages 🇬🇧 🇻🇳 🇮🇩 🇹🇭 🇲🇾 🇰🇭 🇱🇦 🇵🇭 🇲🇲.
|
76 |
</span>
|
77 |
<br>
|
78 |
-
<span>
|
79 |
<span style="color: red">The chatbot may produce false and harmful content!</span>
|
80 |
By using our service, you agree to our <a href="https://huggingface.co/SeaLLMs/SeaLLM-Chat-13b/blob/main/LICENSE" target="_blank" style="color: red">Terms Of Use</a>
|
81 |
</span>
|
@@ -115,6 +115,7 @@ If you find our project useful, hope you can star our repo and cite our paper as
|
|
115 |
"""
|
116 |
|
117 |
|
|
|
118 |
CSS = """
|
119 |
.message-wrap.svelte-1lcyrx4>div.svelte-1lcyrx4 img {
|
120 |
min-width: 200px;
|
@@ -129,10 +130,19 @@ CSS = """
|
|
129 |
width: 100%
|
130 |
}
|
131 |
|
|
|
|
|
|
|
|
|
|
|
132 |
img.tag {
|
133 |
max-height: 1.5em;
|
134 |
width: auto;
|
135 |
}
|
|
|
|
|
|
|
|
|
136 |
"""
|
137 |
|
138 |
USE_PANEL = bool(int(os.environ.get("USE_PANEL", "1")))
|
|
|
71 |
# <a href='https://arxiv.org/pdf/2312.00738.pdf'><img class="tag" src='https://img.shields.io/badge/Paper-red'></a>
|
72 |
# </div>
|
73 |
MODEL_DESC = f"""
|
74 |
+
<span style="font-size: large">
|
75 |
<a href="https://huggingface.co/SeaLLMs/SeaLLM-7B-v2.5" target="_blank">SeaLLM-7B-v2.5</a> - a helpful assistant for Southeast Asian Languages 🇬🇧 🇻🇳 🇮🇩 🇹🇭 🇲🇾 🇰🇭 🇱🇦 🇵🇭 🇲🇲.
|
76 |
</span>
|
77 |
<br>
|
78 |
+
<span style="font-size: small">
|
79 |
<span style="color: red">The chatbot may produce false and harmful content!</span>
|
80 |
By using our service, you agree to our <a href="https://huggingface.co/SeaLLMs/SeaLLM-Chat-13b/blob/main/LICENSE" target="_blank" style="color: red">Terms Of Use</a>
|
81 |
</span>
|
|
|
115 |
"""
|
116 |
|
117 |
|
118 |
+
# .panel-full-width.svelte-1ylopk1.svelte-1ylopk1.svelte-1ylopk1 {
|
119 |
CSS = """
|
120 |
.message-wrap.svelte-1lcyrx4>div.svelte-1lcyrx4 img {
|
121 |
min-width: 200px;
|
|
|
130 |
width: 100%
|
131 |
}
|
132 |
|
133 |
+
.panel-full-width {
|
134 |
+
padding: calc(var(--spacing-xxl) * 1);
|
135 |
+
width: 100%
|
136 |
+
}
|
137 |
+
|
138 |
img.tag {
|
139 |
max-height: 1.5em;
|
140 |
width: auto;
|
141 |
}
|
142 |
+
|
143 |
+
span.prose {
|
144 |
+
font-size: var(--text-lg);
|
145 |
+
}
|
146 |
"""
|
147 |
|
148 |
USE_PANEL = bool(int(os.environ.get("USE_PANEL", "1")))
|
multipurpose_chatbot/demos/mm_chat_interface.py
CHANGED
@@ -892,6 +892,8 @@ class DocMMChatInterfaceDemo(VisionMMChatInterfaceDemo):
|
|
892 |
# [{"text": '5 điều bác Hồ dạy là gì?', "files": []},],
|
893 |
[{"text": "Tolong bantu saya menulis email ke lembaga pemerintah untuk mencari dukungan finansial untuk penelitian AI.", "files": []},],
|
894 |
[{"text": "ຂໍແຈ້ງ 5 ສະຖານທີ່ທ່ອງທ່ຽວໃນນະຄອນຫຼວງວຽງຈັນ", "files": []},],
|
|
|
|
|
895 |
# [{"text": 'ငွေကြေးအခက်အခဲကြောင့် ပညာသင်ဆုတောင်းဖို့ တက္ကသိုလ်ကို စာတစ်စောင်ရေးပြီး ကူညီပေးပါ။', "files": []},],
|
896 |
# [{"text": "Sally has 3 brothers, each brother has 2 sisters. How many sister sally has?", "files": []},],
|
897 |
# [{"text": "There are 3 killers in a room. Someone enters the room and kills 1 of them. Assuming no one leaves the room. How many killers are left in the room?", "files": []},],
|
|
|
892 |
# [{"text": '5 điều bác Hồ dạy là gì?', "files": []},],
|
893 |
[{"text": "Tolong bantu saya menulis email ke lembaga pemerintah untuk mencari dukungan finansial untuk penelitian AI.", "files": []},],
|
894 |
[{"text": "ຂໍແຈ້ງ 5 ສະຖານທີ່ທ່ອງທ່ຽວໃນນະຄອນຫຼວງວຽງຈັນ", "files": []},],
|
895 |
+
[{"text": "Summarize the document", "files": ["assets/attention_short.pdf"]},],
|
896 |
+
# ["Summarize the document", "assets/attention_short.pdf",],
|
897 |
# [{"text": 'ငွေကြေးအခက်အခဲကြောင့် ပညာသင်ဆုတောင်းဖို့ တက္ကသိုလ်ကို စာတစ်စောင်ရေးပြီး ကူညီပေးပါ။', "files": []},],
|
898 |
# [{"text": "Sally has 3 brothers, each brother has 2 sisters. How many sister sally has?", "files": []},],
|
899 |
# [{"text": "There are 3 killers in a room. Someone enters the room and kills 1 of them. Assuming no one leaves the room. How many killers are left in the room?", "files": []},],
|