Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -60,6 +60,8 @@ def respond(
|
|
| 60 |
|
| 61 |
|
| 62 |
for event in completion:
|
|
|
|
|
|
|
| 63 |
if hasattr(event.choices[0].delta, 'reasoning_content'):
|
| 64 |
if is_reasoning_start:
|
| 65 |
response += '> **Start thinking**\n\n'
|
|
@@ -97,7 +99,8 @@ demo = gr.ChatInterface(respond,
|
|
| 97 |
title="Hunyuan T1",
|
| 98 |
examples=example_prompts,
|
| 99 |
chatbot=chatbot,
|
| 100 |
-
description="
|
|
|
|
| 101 |
|
| 102 |
)
|
| 103 |
|
|
|
|
| 60 |
|
| 61 |
|
| 62 |
for event in completion:
|
| 63 |
+
if message in ["aaaaa", "bbbbb", "ccccc"]:
|
| 64 |
+
print(f"event:{event}")
|
| 65 |
if hasattr(event.choices[0].delta, 'reasoning_content'):
|
| 66 |
if is_reasoning_start:
|
| 67 |
response += '> **Start thinking**\n\n'
|
|
|
|
| 99 |
title="Hunyuan T1",
|
| 100 |
examples=example_prompts,
|
| 101 |
chatbot=chatbot,
|
| 102 |
+
description="当前体验demo为非联网Hunyuan-T1 最新推理模型,完整版联网/非联网能力即将在元宝上线,敬请期待!
|
| 103 |
+
The current experience demo is the latest offline inference model of Hunyuan-T1. The full version with both online and offline capabilities will be launched on Tencent Yuanbao soon. Please look forward to it."
|
| 104 |
|
| 105 |
)
|
| 106 |
|