Spaces:
Sleeping
Sleeping
layout
Browse files
app.py
CHANGED
@@ -1565,15 +1565,17 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue=gr.themes.colors.orange, seconda
|
|
1565 |
chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="OPEN AI", show_share_button=False, likeable=True, show_label=False, latex_delimiters=latex_delimiters)
|
1566 |
thread_id = gr.Textbox(label="thread_id", visible=False)
|
1567 |
socratic_mode_btn = gr.Checkbox(label="蘇格拉底家教助理模式", value=True, visible=False)
|
1568 |
-
|
1569 |
-
|
1570 |
-
|
1571 |
-
|
1572 |
-
|
1573 |
-
|
1574 |
-
|
1575 |
-
|
1576 |
-
|
|
|
|
|
1577 |
# with gr.Tab("GROQ"):
|
1578 |
# groq_ai_name = gr.Textbox(label="AI 助理名稱", value="groq", visible=False)
|
1579 |
# groq_chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="groq mode chatbot", show_share_button=False, likeable=True)
|
|
|
1565 |
chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="OPEN AI", show_share_button=False, likeable=True, show_label=False, latex_delimiters=latex_delimiters)
|
1566 |
thread_id = gr.Textbox(label="thread_id", visible=False)
|
1567 |
socratic_mode_btn = gr.Checkbox(label="蘇格拉底家教助理模式", value=True, visible=False)
|
1568 |
+
with gr.Row():
|
1569 |
+
with gr.Accordion("你也有類似的問題想問嗎?", open=False) as ask_questions_accordion:
|
1570 |
+
btn_1 = gr.Button("問題一")
|
1571 |
+
btn_2 = gr.Button("問題一")
|
1572 |
+
btn_3 = gr.Button("問題一")
|
1573 |
+
gr.Markdown("### 重新生成問題")
|
1574 |
+
btn_create_question = gr.Button("生成其他問題", variant="primary")
|
1575 |
+
openai_chatbot_audio_input = gr.Audio(sources=["microphone"], type="filepath")
|
1576 |
+
with gr.Row():
|
1577 |
+
msg = gr.Textbox(label="Message",scale=3)
|
1578 |
+
send_button = gr.Button("Send", variant="primary", scale=1)
|
1579 |
# with gr.Tab("GROQ"):
|
1580 |
# groq_ai_name = gr.Textbox(label="AI 助理名稱", value="groq", visible=False)
|
1581 |
# groq_chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="groq mode chatbot", show_share_button=False, likeable=True)
|