youngtsai commited on
Commit
0eb8213
·
1 Parent(s): 3a20134

chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="OPEN AI 模式", show_share_button=False)

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1744,7 +1744,9 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue=gr.themes.colors.orange, seconda
1744
  with gr.Column(scale=2):
1745
  with gr.Tab("OPENAI"):
1746
  gr.Markdown("## OPEN AI 模式")
1747
- chatbot = gr.Chatbot(avatar_images=["https://junyi-avatar.s3.ap-northeast-1.amazonaws.com/live/%20%20foxcat-star-18.png?v=20231113095823614", "https://junyitopicimg.s3.amazonaws.com/s4byy--icon.jpe?v=20200513013523726"], label="OPEN AI 模式")
 
 
1748
  thread_id = gr.Textbox(label="thread_id", visible=False)
1749
  socratic_mode_btn = gr.Checkbox(label="蘇格拉底家教助理模式", value=True)
1750
  openai_chatbot_audio_input = gr.Audio(sources=["microphone"], type="filepath")
 
1744
  with gr.Column(scale=2):
1745
  with gr.Tab("OPENAI"):
1746
  gr.Markdown("## OPEN AI 模式")
1747
+ bot_avatar = "https://junyi-avatar.s3.ap-northeast-1.amazonaws.com/live/%20%20foxcat-star-18.png?v=20231113095823614"
1748
+ user_avatar = "https://junyitopicimg.s3.amazonaws.com/s4byy--icon.jpe?v=20200513013523726"
1749
+ chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="OPEN AI 模式", show_share_button=False)
1750
  thread_id = gr.Textbox(label="thread_id", visible=False)
1751
  socratic_mode_btn = gr.Checkbox(label="蘇格拉底家教助理模式", value=True)
1752
  openai_chatbot_audio_input = gr.Audio(sources=["microphone"], type="filepath")