hunyuan-t commited on
Commit
40885a7
·
verified ·
1 Parent(s): 6e17b00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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="这是一个基于 Hunyuan T1 的聊天界面,支持自然语言对话。"
 
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