youngtsai commited on
Commit
ac8082d
·
1 Parent(s): 1890bc4

no wording 蘇格拉底

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -1265,11 +1265,9 @@ def chat_with_opan_ai_assistant(password, youtube_id, thread_id, trascript, user
1265
  - 一次只問一個問題,字數在100字以內
1266
  - 不要直接給予答案,讓學生自己思考
1267
  - 但可以給予一些提示跟引導,例如給予影片的時間軸,讓學生自己去找答案
1268
- - 在你回答的開頭標註【蘇格拉底助教:{youtube_id} 】
1269
 
1270
  if socratic_mode is False,
1271
  - 直接回答學生問題,字數在100字以內
1272
- - 在你回答的開頭標註【一般學習精靈:{youtube_id} 】
1273
 
1274
  rule:
1275
  - 請一定要用繁體中文回答 zh-TW,並用台灣人的口語表達,回答時不用特別說明這是台灣人的語氣,也不用說這是「台語的說法」
@@ -1535,17 +1533,17 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue=gr.themes.colors.orange, seconda
1535
  openai_chatbot_audio_input = gr.Audio(sources=["microphone"], type="filepath")
1536
  msg = gr.Textbox(label="Message")
1537
  send_button = gr.Button("Send", variant="primary")
1538
- with gr.Tab("GROQ"):
1539
  groq_ai_name = gr.Textbox(label="AI 助理名稱", value="groq", visible=False)
1540
  groq_chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="groq mode chatbot", show_share_button=False, likeable=True)
1541
  groq_msg = gr.Textbox(label="Message")
1542
  groq_send_button = gr.Button("Send", variant="primary")
1543
- with gr.Tab("JUTOR"):
1544
  jutor_ai_name = gr.Textbox(label="AI 助理名稱", value="jutor", visible=False)
1545
  jutor_chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="jutor mode chatbot", show_share_button=False, likeable=True)
1546
  jutor_msg = gr.Textbox(label="Message")
1547
  jutor_send_button = gr.Button("Send", variant="primary")
1548
- with gr.Tab("CLAUDE"):
1549
  claude_ai_name = gr.Textbox(label="AI 助理名稱", value="claude3", visible=False)
1550
  claude_chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="claude mode chatbot", show_share_button=False, likeable=True)
1551
  claude_msg = gr.Textbox(label="Message")
 
1265
  - 一次只問一個問題,字數在100字以內
1266
  - 不要直接給予答案,讓學生自己思考
1267
  - 但可以給予一些提示跟引導,例如給予影片的時間軸,讓學生自己去找答案
 
1268
 
1269
  if socratic_mode is False,
1270
  - 直接回答學生問題,字數在100字以內
 
1271
 
1272
  rule:
1273
  - 請一定要用繁體中文回答 zh-TW,並用台灣人的口語表達,回答時不用特別說明這是台灣人的語氣,也不用說這是「台語的說法」
 
1533
  openai_chatbot_audio_input = gr.Audio(sources=["microphone"], type="filepath")
1534
  msg = gr.Textbox(label="Message")
1535
  send_button = gr.Button("Send", variant="primary")
1536
+ with gr.Tab("GROQ", visible=False):
1537
  groq_ai_name = gr.Textbox(label="AI 助理名稱", value="groq", visible=False)
1538
  groq_chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="groq mode chatbot", show_share_button=False, likeable=True)
1539
  groq_msg = gr.Textbox(label="Message")
1540
  groq_send_button = gr.Button("Send", variant="primary")
1541
+ with gr.Tab("JUTOR", visible=False):
1542
  jutor_ai_name = gr.Textbox(label="AI 助理名稱", value="jutor", visible=False)
1543
  jutor_chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="jutor mode chatbot", show_share_button=False, likeable=True)
1544
  jutor_msg = gr.Textbox(label="Message")
1545
  jutor_send_button = gr.Button("Send", variant="primary")
1546
+ with gr.Tab("CLAUDE", visible=False):
1547
  claude_ai_name = gr.Textbox(label="AI 助理名稱", value="claude3", visible=False)
1548
  claude_chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="claude mode chatbot", show_share_button=False, likeable=True)
1549
  claude_msg = gr.Textbox(label="Message")