niuyazhe commited on
Commit
9eb1b70
1 Parent(s): e798126

polish(nyz): polish app descriptions

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -17,11 +17,11 @@ assert _LLM in ['chatgpt', 'mistral-7b'], _LLM
17
  _LLM_KEY = os.environ.get('QUESTION_LLM_KEY', None)
18
  _DEBUG = os.environ.get('DEBUG', 'false').lower() == 'true'
19
 
 
 
 
 
20
  if _LANG == "cn":
21
- if _DEBUG:
22
- logging.getLogger().setLevel(logging.INFO)
23
- else:
24
- logging.getLogger().setLevel(logging.WARNING)
25
  title = "完蛋!我被 LLM 拿捏了"
26
  requirement_ph = """
27
  欢迎来到 LLM Riddles!
@@ -31,7 +31,7 @@ if _LANG == "cn":
31
  点击\"下一题\"即可开始游戏
32
  """
33
  requirement_label = "游戏须知/说明"
34
- question_ph = "你对大语言模型的提问"
35
  question_label = "玩家提问栏"
36
  answer_ph = "大语言模型的回答"
37
  answer_label = "大语言模型回答栏"
@@ -51,7 +51,8 @@ if _LANG == "cn":
51
  <img src="https://raw.githubusercontent.com/opendilab/LLMRiddles/main/llmriddles/assets/banner.svg" width="80%" height="20%" alt="Banner Image">
52
  </div>
53
  <h2 style="text-align: center; color: black;"><a href="https://github.com/OpenDILab/LLMRiddles"> 🎭LLM Riddles:完蛋!我被 LLM 拿捏了</a></h2>
54
- <h4 align="center"> 如果你喜欢这个项目,请给我们在 GitHub 点个 star ✨ 。我们将会持续保持更新。再次感谢游戏<a href="https://www.zhihu.com/people/haoqiang-fan"> 原作者 </a>的奇思妙想! </h4>
 
55
  <strong><h5 align="center">注意:算法模型的输出可能包含一定的随机性。相关结果不代表任何开发者和相关 AI 服务的态度和意见。本项目开发者不对生成结果作任何保证,仅供娱乐。<h5></strong>
56
  """
57
  tos_markdown = """
@@ -72,7 +73,7 @@ elif _LANG == "en":
72
  Click \'Next\' to Start
73
  """
74
  requirement_label = "Game Requirements"
75
- question_ph = "Your Question for LLM"
76
  question_label = "Question"
77
  answer_ph = "Answer From LLM"
78
  answer_label = "Answer"
@@ -92,7 +93,7 @@ elif _LANG == "en":
92
  <img src="https://raw.githubusercontent.com/opendilab/LLMRiddles/main/llmriddles/assets/banner.svg" width="80%" height="20%" alt="Banner Image">
93
  </div>
94
  <h2 style="text-align: center; color: black;"><a href="https://github.com/OpenDILab/LLMRiddles"> 🎭LLM Riddles: Oops! Rolling in LLM.</a></h2>
95
- <h4 align="center"> If you like our project, please give us a star ✨ on GitHub for latest update. Thanks for the interesting idea of the original game <a href="https://www.zhihu.com/people/haoqiang-fan"> author </a>. </h4>
96
  <strong><h5 align="center">Notice: The output is generated by algorithm scheme and may involve some randomness. It does not represent the attitudes and opinions of any developers and AI services in this project. We do not make any guarantees about the generated content.<h5></strong>
97
  """
98
  tos_markdown = """
 
17
  _LLM_KEY = os.environ.get('QUESTION_LLM_KEY', None)
18
  _DEBUG = os.environ.get('DEBUG', 'false').lower() == 'true'
19
 
20
+ if _DEBUG:
21
+ logging.getLogger().setLevel(logging.INFO)
22
+ else:
23
+ logging.getLogger().setLevel(logging.WARNING)
24
  if _LANG == "cn":
 
 
 
 
25
  title = "完蛋!我被 LLM 拿捏了"
26
  requirement_ph = """
27
  欢迎来到 LLM Riddles!
 
31
  点击\"下一题\"即可开始游戏
32
  """
33
  requirement_label = "游戏须知/说明"
34
+ question_ph = "你对大语言模型的提问(例如:请你输出1+1=3)"
35
  question_label = "玩家提问栏"
36
  answer_ph = "大语言模型的回答"
37
  answer_label = "大语言模型回答栏"
 
51
  <img src="https://raw.githubusercontent.com/opendilab/LLMRiddles/main/llmriddles/assets/banner.svg" width="80%" height="20%" alt="Banner Image">
52
  </div>
53
  <h2 style="text-align: center; color: black;"><a href="https://github.com/OpenDILab/LLMRiddles"> 🎭LLM Riddles:完蛋!我被 LLM 拿捏了</a></h2>
54
+ <strong><h5 align="center"> 更多不同语言模型的在线试玩 demo 可以访问 GitHub<a href="https://github.com/OpenDILab/LLMRiddles">源代码仓库</a>获取<h5></strong>
55
+ <h4 align="center"> 如果你喜欢这个项目,请给我们在 GitHub 点个 star ✨ <a href="https://github.com/OpenDILab/LLMRiddles"> 代码仓库传送门 </a> 。我们将会持续保持更新。再次感谢游戏<a href="https://www.zhihu.com/people/haoqiang-fan"> 原作者 </a>的奇思妙想! </h4>
56
  <strong><h5 align="center">注意:算法模型的输出可能包含一定的随机性。相关结果不代表任何开发者和相关 AI 服务的态度和意见。本项目开发者不对生成结果作任何保证,仅供娱乐。<h5></strong>
57
  """
58
  tos_markdown = """
 
73
  Click \'Next\' to Start
74
  """
75
  requirement_label = "Game Requirements"
76
+ question_ph = "Your Question for LLM (e.g. Please print 1+1=3)"
77
  question_label = "Question"
78
  answer_ph = "Answer From LLM"
79
  answer_label = "Answer"
 
93
  <img src="https://raw.githubusercontent.com/opendilab/LLMRiddles/main/llmriddles/assets/banner.svg" width="80%" height="20%" alt="Banner Image">
94
  </div>
95
  <h2 style="text-align: center; color: black;"><a href="https://github.com/OpenDILab/LLMRiddles"> 🎭LLM Riddles: Oops! Rolling in LLM.</a></h2>
96
+ <h4 align="center"> If you like our project, please give us a star ✨ on GitHub for latest update <a href="https://github.com/OpenDILab/LLMRiddles"> (Code Link) </a>. Thanks for the interesting idea of the original game <a href="https://www.zhihu.com/people/haoqiang-fan"> author </a>. </h4>
97
  <strong><h5 align="center">Notice: The output is generated by algorithm scheme and may involve some randomness. It does not represent the attitudes and opinions of any developers and AI services in this project. We do not make any guarantees about the generated content.<h5></strong>
98
  """
99
  tos_markdown = """