hunyuan-t commited on
Commit
1b51ba2
·
verified ·
1 Parent(s): 92acf3c

Update app.py

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