hunyuan-t commited on
Commit
1405e41
·
verified ·
1 Parent(s): 8e733ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +35 -5
app.py CHANGED
@@ -76,11 +76,41 @@ def respond(
76
  raise gr.Error(f"发生错误: {str(e)}")
77
 
78
  example_prompts = [
79
- ["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.", "System", 512, 0.7, 0.95],
80
- ["Compose an engaging travel blog post about a recent trip to Hawaii, highlighting cultural experiences and must-see attractions.", "System", 1024, 0.5, 0.9],
81
- ["Why has online learning been able to spread rapidly in recent years?", "System", 1536, 0.5, 0.9],
82
- ["How many 'e' in Deeplearning?", "System", 2048, 0.5, 0.9],
83
- ["Write a 3-line poem", "System", 2560, 0.5, 0.9],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  ]
85
  latex_delimiters = [
86
  {"left": "$$", "right": "$$", "display": True},
 
76
  raise gr.Error(f"发生错误: {str(e)}")
77
 
78
  example_prompts = [
79
+ [
80
+ "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.",
81
+ "你是一个电影推荐助手",
82
+ 256, # 生成约 200
83
+ 0.8, # 中等创意
84
+ 0.85
85
+ ],
86
+ [
87
+ "Compose an engaging travel blog post about a recent trip to Hawaii, highlighting cultural experiences and must-see attractions.",
88
+ "你是一个AI教授",
89
+ 128, # 简短定义
90
+ 0.3, # 高确定性
91
+ 0.9
92
+ ],
93
+ [
94
+ "Why has online learning been able to spread rapidly in recent years?",
95
+ "你是一个数学老师",
96
+ 64,
97
+ 0.1,
98
+ 0.95
99
+ ],
100
+ [
101
+ "How many 'e' in Deeplearning?",
102
+ "你是一个科幻作家",
103
+ 512,
104
+ 1.2,
105
+ 0.75
106
+ ],
107
+ [
108
+ "Write a 3-line poem",
109
+ "你是一个历史学者",
110
+ 384,
111
+ 0.6,
112
+ 0.88
113
+ ]
114
  ]
115
  latex_delimiters = [
116
  {"left": "$$", "right": "$$", "display": True},