Dango233 commited on
Commit
ffc5b57
·
1 Parent(s): b56cbfa

Naming And Details

Browse files
Files changed (3) hide show
  1. .gitignore +8 -0
  2. app.py +2 -1
  3. lang.py +5 -2
.gitignore ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Environment files
2
+ .env
3
+ .apikey # 同时忽略旧密钥文件
4
+
5
+ # Python
6
+ __pycache__/
7
+ *.py[cod]
8
+ .venv/
app.py CHANGED
@@ -187,7 +187,7 @@ def update_interface_language(selected_lang, convo_state, dynamic_state):
187
  gr.update(label=lang_data["language_label"]),
188
  gr.update(value=lang_data["clear_btn"], interactive = not dynamic_state.should_stream),
189
  gr.update(value=lang_data["introduction"]),
190
- gr.update(value=lang_data["bot_default"]),
191
  ]
192
 
193
 
@@ -216,6 +216,7 @@ with gr.Blocks(theme=theme, css_paths="styles.css") as demo:
216
  group_consecutive_messages=False,
217
  show_copy_all_button=True,
218
  show_share_button=True,
 
219
  )
220
  prompt_input = gr.Textbox(
221
  label=LANGUAGE_CONFIG["en"]["prompt_label"],
 
187
  gr.update(label=lang_data["language_label"]),
188
  gr.update(value=lang_data["clear_btn"], interactive = not dynamic_state.should_stream),
189
  gr.update(value=lang_data["introduction"]),
190
+ gr.update(value=lang_data["bot_default"], label=lang_data["bot_label"]),
191
  ]
192
 
193
 
 
216
  group_consecutive_messages=False,
217
  show_copy_all_button=True,
218
  show_share_button=True,
219
+ label=LANGUAGE_CONFIG['en']['bot_label']
220
  )
221
  prompt_input = gr.Textbox(
222
  label=LANGUAGE_CONFIG["en"]["prompt_label"],
lang.py CHANGED
@@ -4,7 +4,7 @@ LANGUAGE_CONFIG = {
4
  "title": "CoT-Lab: Human-AI Co-Thinking Laboratory \nFollow, learn, and iterate the thought within one turn.",
5
  "prompt_label": "Task Description - Prompt",
6
  "prompt_placeholder": "Enter your prompt here...",
7
- "editor_label": "Thinking Process",
8
  "editor_placeholder": "The AI's thinking process will appear here... You can edit when it pauses",
9
  "generate_btn": "Generate",
10
  "pause_btn": "Pause",
@@ -25,6 +25,7 @@ LANGUAGE_CONFIG = {
25
  "api_url_placeholder": "Leave empty for default URL",
26
  "clear_btn": "Clear Thinking",
27
  "introduction": "Think together with AI. Use `Shift+Enter` to toggle generation <br>You can modify the thinking process when AI pauses",
 
28
  "bot_default": [
29
  {"role":"assistant","content":"Welcome to our co-thinking space! Ready to synchronize our cognitive rhythms? \n Shall we start by adjusting the throughput slider to match your reading pace? \n Enter your task below, edit my thinking process when I pause, and let's begin weaving thoughts together →"},
30
  ]
@@ -33,7 +34,7 @@ LANGUAGE_CONFIG = {
33
  "title": "CoT-Lab: 人机协同思维实验室\n在一轮对话中跟随、学习、迭代思维链",
34
  "prompt_label": "任务描述 - 提示词",
35
  "prompt_placeholder": "在此输入您的问题...",
36
- "editor_label": "思考过程",
37
  "editor_placeholder": "AI的思考过程将在此显示...您可以在暂停的时候编辑",
38
  "generate_btn": "生成",
39
  "pause_btn": "暂停",
@@ -54,8 +55,10 @@ LANGUAGE_CONFIG = {
54
  "api_url_placeholder": "留空使用默认地址",
55
  "clear_btn": "清空思考",
56
  "introduction": "和AI一起思考,Shift+Enter切换生成状态<br>AI暂停的时候你可以编辑思维过程",
 
57
  "bot_default": [
58
  {"role":"assistant","content":"欢迎来到协同思考空间!准备好同步我们的认知节奏了吗?\n 建议先调整右侧的'同步思考速度'滑块,让它匹配你的阅读速度 \n 在下方输入任务描述,在我暂停时修改我的思维,让我们开始编织思维链条 →"},
 
59
  ]
60
  }
61
  }
 
4
  "title": "CoT-Lab: Human-AI Co-Thinking Laboratory \nFollow, learn, and iterate the thought within one turn.",
5
  "prompt_label": "Task Description - Prompt",
6
  "prompt_placeholder": "Enter your prompt here...",
7
+ "editor_label": "Thought Editor",
8
  "editor_placeholder": "The AI's thinking process will appear here... You can edit when it pauses",
9
  "generate_btn": "Generate",
10
  "pause_btn": "Pause",
 
25
  "api_url_placeholder": "Leave empty for default URL",
26
  "clear_btn": "Clear Thinking",
27
  "introduction": "Think together with AI. Use `Shift+Enter` to toggle generation <br>You can modify the thinking process when AI pauses",
28
+ "bot_label": "Conversation Overview",
29
  "bot_default": [
30
  {"role":"assistant","content":"Welcome to our co-thinking space! Ready to synchronize our cognitive rhythms? \n Shall we start by adjusting the throughput slider to match your reading pace? \n Enter your task below, edit my thinking process when I pause, and let's begin weaving thoughts together →"},
31
  ]
 
34
  "title": "CoT-Lab: 人机协同思维实验室\n在一轮对话中跟随、学习、迭代思维链",
35
  "prompt_label": "任务描述 - 提示词",
36
  "prompt_placeholder": "在此输入您的问题...",
37
+ "editor_label": "思维编辑器",
38
  "editor_placeholder": "AI的思考过程将在此显示...您可以在暂停的时候编辑",
39
  "generate_btn": "生成",
40
  "pause_btn": "暂停",
 
55
  "api_url_placeholder": "留空使用默认地址",
56
  "clear_btn": "清空思考",
57
  "introduction": "和AI一起思考,Shift+Enter切换生成状态<br>AI暂停的时候你可以编辑思维过程",
58
+ "bot_label": "对话一览",
59
  "bot_default": [
60
  {"role":"assistant","content":"欢迎来到协同思考空间!准备好同步我们的认知节奏了吗?\n 建议先调整右侧的'同步思考速度'滑块,让它匹配你的阅读速度 \n 在下方输入任务描述,在我暂停时修改我的思维,让我们开始编织思维链条 →"},
61
+ {"role":"assistant","content":"**Shift+Enter** 可以暂停/继续AI生成"},
62
  ]
63
  }
64
  }