Spaces:
Sleeping
Sleeping
layout
Browse files
app.py
CHANGED
@@ -1487,43 +1487,44 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue=gr.themes.colors.orange, seconda
|
|
1487 |
user_data = gr.Textbox(label="User Data", elem_id="user_data_input", visible=True)
|
1488 |
youtube_link_btn = gr.Button("Submit_YouTube_Link", elem_id="youtube_link_btn", visible=True)
|
1489 |
with gr.Tab("AI小精靈"):
|
1490 |
-
with gr.
|
1491 |
-
gr.
|
1492 |
-
|
1493 |
-
|
1494 |
-
|
1495 |
-
|
1496 |
-
|
1497 |
-
|
1498 |
-
with gr.
|
1499 |
-
|
1500 |
-
|
1501 |
-
|
1502 |
-
|
1503 |
-
|
1504 |
-
|
1505 |
-
|
1506 |
-
|
1507 |
-
|
1508 |
-
|
1509 |
-
|
1510 |
-
|
1511 |
-
|
1512 |
-
|
1513 |
-
|
1514 |
-
|
1515 |
-
|
1516 |
-
|
1517 |
-
|
1518 |
-
|
1519 |
-
|
1520 |
-
|
1521 |
-
|
1522 |
-
|
1523 |
-
|
1524 |
-
|
1525 |
-
|
1526 |
-
|
|
|
1527 |
with gr.Tab("文章模式"):
|
1528 |
reading_passage = gr.Textbox(label="Reading Passage", lines=40, show_label=False)
|
1529 |
reading_passage_speak_button = gr.Button("Speak", visible=False)
|
|
|
1487 |
user_data = gr.Textbox(label="User Data", elem_id="user_data_input", visible=True)
|
1488 |
youtube_link_btn = gr.Button("Submit_YouTube_Link", elem_id="youtube_link_btn", visible=True)
|
1489 |
with gr.Tab("AI小精靈"):
|
1490 |
+
with gr.Row():
|
1491 |
+
with gr.Column(scale=1):
|
1492 |
+
gr.Markdown("## 你也有類似的問題想問嗎?")
|
1493 |
+
btn_1 = gr.Button()
|
1494 |
+
btn_2 = gr.Button()
|
1495 |
+
btn_3 = gr.Button()
|
1496 |
+
gr.Markdown("## 重新生成問題")
|
1497 |
+
btn_create_question = gr.Button("生成其他問題", variant="primary")
|
1498 |
+
with gr.Column(scale=2):
|
1499 |
+
with gr.Tab("飛特"):
|
1500 |
+
bot_avatar = "https://junyi-avatar.s3.ap-northeast-1.amazonaws.com/live/%20%20foxcat-star-18.png?v=20231113095823614"
|
1501 |
+
user_avatar = "https://junyitopicimg.s3.amazonaws.com/s4byy--icon.jpe?v=20200513013523726"
|
1502 |
+
chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="OPEN AI", show_share_button=False, likeable=True, show_label=False)
|
1503 |
+
thread_id = gr.Textbox(label="thread_id", visible=False)
|
1504 |
+
socratic_mode_btn = gr.Checkbox(label="蘇格拉底家教助理模式", value=True)
|
1505 |
+
openai_chatbot_audio_input = gr.Audio(sources=["microphone"], type="filepath")
|
1506 |
+
msg = gr.Textbox(label="Message")
|
1507 |
+
send_button = gr.Button("Send", variant="primary")
|
1508 |
+
with gr.Tab("GROQ", visible=False):
|
1509 |
+
groq_ai_name = gr.Textbox(label="AI 助理名稱", value="groq", visible=False)
|
1510 |
+
groq_chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="groq mode chatbot", show_share_button=False, likeable=True)
|
1511 |
+
groq_msg = gr.Textbox(label="Message")
|
1512 |
+
groq_send_button = gr.Button("Send", variant="primary")
|
1513 |
+
with gr.Tab("JUTOR", visible=False):
|
1514 |
+
jutor_ai_name = gr.Textbox(label="AI 助理名稱", value="jutor", visible=False)
|
1515 |
+
jutor_chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="jutor mode chatbot", show_share_button=False, likeable=True)
|
1516 |
+
jutor_msg = gr.Textbox(label="Message")
|
1517 |
+
jutor_send_button = gr.Button("Send", variant="primary")
|
1518 |
+
with gr.Tab("CLAUDE", visible=False):
|
1519 |
+
claude_ai_name = gr.Textbox(label="AI 助理名稱", value="claude3", visible=False)
|
1520 |
+
claude_chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="claude mode chatbot", show_share_button=False, likeable=True)
|
1521 |
+
claude_msg = gr.Textbox(label="Message")
|
1522 |
+
claude_send_button = gr.Button("Send", variant="primary")
|
1523 |
+
with gr.Tab("其他精靈", visible=True):
|
1524 |
+
ai_name = gr.Dropdown(label="選擇 AI 助理", choices=["jutor", "claude3", "groq"], value="jutor")
|
1525 |
+
ai_chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="ai_chatbot", show_share_button=False, likeable=True, show_label=False)
|
1526 |
+
ai_msg = gr.Textbox(label="Message")
|
1527 |
+
ai_send_button = gr.Button("Send", variant="primary")
|
1528 |
with gr.Tab("文章模式"):
|
1529 |
reading_passage = gr.Textbox(label="Reading Passage", lines=40, show_label=False)
|
1530 |
reading_passage_speak_button = gr.Button("Speak", visible=False)
|