youngtsai commited on
Commit
7dd1c43
·
1 Parent(s): 94033d2

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

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1746,7 +1746,7 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue=gr.themes.colors.orange, seconda
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")
@@ -1754,12 +1754,12 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue=gr.themes.colors.orange, seconda
1754
  send_button = gr.Button("Send", variant="primary")
1755
  with gr.Tab("GROQ"):
1756
  gr.Markdown("## GROQ 模式")
1757
- groq_chatbot = gr.Chatbot(label="groq mode chatbot", show_share_button=False)
1758
  groq_msg = gr.Textbox(label="Message")
1759
  groq_send_button = gr.Button("Send", variant="primary")
1760
  with gr.Tab("JUTOR"):
1761
  gr.Markdown("## JUTOR API 模式")
1762
- jutor_chatbot = gr.Chatbot(label="jutor mode chatbot", show_share_button=False)
1763
  jutor_msg = gr.Textbox(label="Message")
1764
  jutor_send_button = gr.Button("Send", variant="primary")
1765
 
 
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, likeable=True)
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")
 
1754
  send_button = gr.Button("Send", variant="primary")
1755
  with gr.Tab("GROQ"):
1756
  gr.Markdown("## GROQ 模式")
1757
+ groq_chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="groq mode chatbot", show_share_button=False)
1758
  groq_msg = gr.Textbox(label="Message")
1759
  groq_send_button = gr.Button("Send", variant="primary")
1760
  with gr.Tab("JUTOR"):
1761
  gr.Markdown("## JUTOR API 模式")
1762
+ jutor_chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="jutor mode chatbot", show_share_button=False)
1763
  jutor_msg = gr.Textbox(label="Message")
1764
  jutor_send_button = gr.Button("Send", variant="primary")
1765