Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,39 +78,19 @@ def respond(
|
|
| 78 |
|
| 79 |
example_prompts = [
|
| 80 |
[
|
| 81 |
-
"Write a short papragraph where the 1st letter of each sentence spells out the word 'CODE'. The message should appear natural and not obviously hide this pattern."
|
| 82 |
-
"System",
|
| 83 |
-
256,
|
| 84 |
-
0.8,
|
| 85 |
-
0.85
|
| 86 |
],
|
| 87 |
[
|
| 88 |
-
"Compose an engaging travel blog post about a recent trip to Hawaii, highlighting cultural experiences and must-see attractions."
|
| 89 |
-
"System",
|
| 90 |
-
128,
|
| 91 |
-
0.3,
|
| 92 |
-
0.9
|
| 93 |
],
|
| 94 |
[
|
| 95 |
-
"Why has online learning been able to spread rapidly in recent years?"
|
| 96 |
-
"System",
|
| 97 |
-
64,
|
| 98 |
-
0.1,
|
| 99 |
-
0.95
|
| 100 |
],
|
| 101 |
[
|
| 102 |
-
"How many 'e' in Deeplearning?"
|
| 103 |
-
"System",
|
| 104 |
-
512,
|
| 105 |
-
1.2,
|
| 106 |
-
0.75
|
| 107 |
],
|
| 108 |
[
|
| 109 |
-
"Write a 3-line poem"
|
| 110 |
-
"System",
|
| 111 |
-
384,
|
| 112 |
-
0.6,
|
| 113 |
-
0.88
|
| 114 |
]
|
| 115 |
]
|
| 116 |
|
|
@@ -127,13 +107,7 @@ chatbot = gr.Chatbot(latex_delimiters=latex_delimiters, scale=9)
|
|
| 127 |
demo = gr.ChatInterface(respond,
|
| 128 |
title="Hunyuan-T1",
|
| 129 |
chatbot=chatbot,
|
| 130 |
-
|
| 131 |
-
# "Write a short papragraph where the 1st letter of each sentence spells out the word 'CODE'. The message should appear natural and not obviously hide this pattern.",
|
| 132 |
-
# "Compose an engaging travel blog post about a recent trip to Hawaii, highlighting cultural experiences and must-see attractions.",
|
| 133 |
-
# "Why has online learning been able to spread rapidly in recent years?",
|
| 134 |
-
# "How many 'e' in Deeplearning?",
|
| 135 |
-
# "Write a 3-line poem"
|
| 136 |
-
# ],
|
| 137 |
description="当前体验demo为非联网Hunyuan-T1 最新推理模型,完整版联网/非联网能力即将在元宝上线,敬请期待!</br>The current demo is the latest reasoning model of Hunyuan-T1. The full version with browsing will be launched on Tencent Yuanbao soon. Stay tuned."
|
| 138 |
)
|
| 139 |
|
|
|
|
| 78 |
|
| 79 |
example_prompts = [
|
| 80 |
[
|
| 81 |
+
"Write a short papragraph where the 1st letter of each sentence spells out the word 'CODE'. The message should appear natural and not obviously hide this pattern."
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
],
|
| 83 |
[
|
| 84 |
+
"Compose an engaging travel blog post about a recent trip to Hawaii, highlighting cultural experiences and must-see attractions."
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
],
|
| 86 |
[
|
| 87 |
+
"Why has online learning been able to spread rapidly in recent years?"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
],
|
| 89 |
[
|
| 90 |
+
"How many 'e' in Deeplearning?"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
],
|
| 92 |
[
|
| 93 |
+
"Write a 3-line poem"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
]
|
| 95 |
]
|
| 96 |
|
|
|
|
| 107 |
demo = gr.ChatInterface(respond,
|
| 108 |
title="Hunyuan-T1",
|
| 109 |
chatbot=chatbot,
|
| 110 |
+
examples=example_prompts,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
description="当前体验demo为非联网Hunyuan-T1 最新推理模型,完整版联网/非联网能力即将在元宝上线,敬请期待!</br>The current demo is the latest reasoning model of Hunyuan-T1. The full version with browsing will be launched on Tencent Yuanbao soon. Stay tuned."
|
| 112 |
)
|
| 113 |
|