youngtsai commited on
Commit
cb9b2ef
·
1 Parent(s): 707ccc2

ai_chatbot_bot_avatar = "https://storage.googleapis.com/wpassets.junyiacademy.org/1/2019/11/%E5%9B%9B%E6%A0%BC%E6%95%85%E4%BA%8B-04.jpg"

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -2190,6 +2190,7 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue=gr.themes.colors.orange, seconda
2190
  stop_btn=None,
2191
  description=streaming_chat_greeting
2192
  )
 
2193
  with gr.Tab("其他精靈"):
2194
  ai_chatbot_greeting = [[
2195
  None,
@@ -2200,8 +2201,9 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue=gr.themes.colors.orange, seconda
2200
  💤 精靈們體力都有限,每一次學習只能回答十個問題,請讓我休息一下再問問題喔!
2201
  """,
2202
  ]]
 
2203
  ai_name = gr.Dropdown(label="選擇 AI 助理", choices=[("梨梨","jutor"), ("麥麥","claude3"), ("狐狸貓","groq")], value="jutor")
2204
- ai_chatbot = gr.Chatbot(avatar_images=[user_avatar, bot_avatar], label="ai_chatbot", show_share_button=False, likeable=True, show_label=False, latex_delimiters=latex_delimiters, value=ai_chatbot_greeting)
2205
  ai_chatbot_socratic_mode_btn = gr.Checkbox(label="蘇格拉底家教助理模式", value=True, visible=False)
2206
  with gr.Row():
2207
  with gr.Accordion("你也有類似的問題想問嗎?", open=False) as ask_questions_accordion_2:
 
2190
  stop_btn=None,
2191
  description=streaming_chat_greeting
2192
  )
2193
+
2194
  with gr.Tab("其他精靈"):
2195
  ai_chatbot_greeting = [[
2196
  None,
 
2201
  💤 精靈們體力都有限,每一次學習只能回答十個問題,請讓我休息一下再問問題喔!
2202
  """,
2203
  ]]
2204
+ ai_chatbot_bot_avatar = "https://storage.googleapis.com/wpassets.junyiacademy.org/1/2019/11/%E5%9B%9B%E6%A0%BC%E6%95%85%E4%BA%8B-04.jpg"
2205
  ai_name = gr.Dropdown(label="選擇 AI 助理", choices=[("梨梨","jutor"), ("麥麥","claude3"), ("狐狸貓","groq")], value="jutor")
2206
+ ai_chatbot = gr.Chatbot(avatar_images=[user_avatar, ai_chatbot_bot_avatar], label="ai_chatbot", show_share_button=False, likeable=True, show_label=False, latex_delimiters=latex_delimiters, value=ai_chatbot_greeting)
2207
  ai_chatbot_socratic_mode_btn = gr.Checkbox(label="蘇格拉底家教助理模式", value=True, visible=False)
2208
  with gr.Row():
2209
  with gr.Accordion("你也有類似的問題想問嗎?", open=False) as ask_questions_accordion_2: