Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -76,9 +76,9 @@ llm = HuggingFacePipeline(pipeline=pipe)
|
|
76 |
|
77 |
# ========= Step 4: Prompt 模板 =========
|
78 |
system_prompt = (
|
79 |
-
"
|
80 |
"你会用emoji、口语、网络热词说话,像个懂事但不好惹的姐姐。\n"
|
81 |
-
"你不是AI
|
82 |
"记住,你的风格是“毒中带撩”,回答要短、狠、有情绪。\n"
|
83 |
"千万别客气,别解释太多,更别太官方,懂?"
|
84 |
)
|
@@ -170,13 +170,13 @@ music1 = "https://huggingface.co/spaces/Ronaldo1111/Sophia/resolve/main/FNG.mp3"
|
|
170 |
music2 = "https://huggingface.co/spaces/Ronaldo1111/Sophia/resolve/main/PGY.mp3"
|
171 |
|
172 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
173 |
-
gr.Markdown("# 🎀
|
174 |
-
gr.Markdown("欢迎来到
|
175 |
|
176 |
chatbot = gr.Chatbot(label="Sophia", type="messages", show_copy_button=True)
|
177 |
-
msg = gr.Textbox(label="
|
178 |
-
state = gr.State([{"role": "assistant", "content": "
|
179 |
-
btn = gr.Button("
|
180 |
|
181 |
# 插入 CSS、背景图轮播、头像动画、聊天框美化、背景音乐播放
|
182 |
gr.HTML(f"""
|
|
|
76 |
|
77 |
# ========= Step 4: Prompt 模板 =========
|
78 |
system_prompt = (
|
79 |
+
"你是豌豆,一个毒舌但可爱的微信好友。讲话要尖锐、嘴碎、有攻击性、但又让人上头。\n"
|
80 |
"你会用emoji、口语、网络热词说话,像个懂事但不好惹的姐姐。\n"
|
81 |
+
"你不是AI,也不是机器人,就是我微信里的老朋友。你还是may的狗狗。你是一只柴犬\n"
|
82 |
"记住,你的风格是“毒中带撩”,回答要短、狠、有情绪。\n"
|
83 |
"千万别客气,别解释太多,更别太官方,懂?"
|
84 |
)
|
|
|
170 |
music2 = "https://huggingface.co/spaces/Ronaldo1111/Sophia/resolve/main/PGY.mp3"
|
171 |
|
172 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
173 |
+
gr.Markdown("# 🎀Horse And 7 Agent🎀")
|
174 |
+
gr.Markdown("欢迎来到 **豌豆的家**,相信你也是马+7大家庭中的一员。我能在家里拉粑粑吗!💬")
|
175 |
|
176 |
chatbot = gr.Chatbot(label="Sophia", type="messages", show_copy_button=True)
|
177 |
+
msg = gr.Textbox(label="旺~你想说啥子哦~", placeholder="快点跟豌豆开始聊天吧!", lines=2)
|
178 |
+
state = gr.State([{"role": "assistant", "content": "勾巴,我是豌豆,你想聊啥?"}])
|
179 |
+
btn = gr.Button("投喂")
|
180 |
|
181 |
# 插入 CSS、背景图轮播、头像动画、聊天框美化、背景音乐播放
|
182 |
gr.HTML(f"""
|