Spaces:
Sleeping
Sleeping
with gr.Tab("飛特"):
Browse files- README.md +2 -2
- app.py +16 -22
- requirements.txt +1 -1
README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
emoji: 📚
|
4 |
colorFrom: red
|
5 |
colorTo: blue
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 4.
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
|
|
1 |
---
|
2 |
+
title: Csv Chatbot
|
3 |
emoji: 📚
|
4 |
colorFrom: red
|
5 |
colorTo: blue
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 4.8.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
app.py
CHANGED
@@ -44,12 +44,6 @@ print(f"is_env_local: {is_env_local}")
|
|
44 |
print("===gr__version__===")
|
45 |
print(gr.__version__)
|
46 |
|
47 |
-
os.system("pip uninstall -y gradio")
|
48 |
-
os.system("pip install gradio==4.24.0")
|
49 |
-
|
50 |
-
print("===gr__version__after===")
|
51 |
-
print(gr.__version__)
|
52 |
-
|
53 |
|
54 |
if is_env_local:
|
55 |
with open("local_config.json") as f:
|
@@ -1515,22 +1509,22 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue=gr.themes.colors.orange, seconda
|
|
1515 |
openai_chatbot_audio_input = gr.Audio(sources=["microphone"], type="filepath")
|
1516 |
msg = gr.Textbox(label="Message")
|
1517 |
send_button = gr.Button("Send", variant="primary")
|
1518 |
-
with gr.Tab("GROQ"
|
1519 |
-
|
1520 |
-
|
1521 |
-
|
1522 |
-
|
1523 |
-
with gr.Tab("JUTOR"
|
1524 |
-
|
1525 |
-
|
1526 |
-
|
1527 |
-
|
1528 |
-
with gr.Tab("CLAUDE"
|
1529 |
-
|
1530 |
-
|
1531 |
-
|
1532 |
-
|
1533 |
-
with gr.Tab("其他精靈"
|
1534 |
ai_name = gr.Dropdown(label="選擇 AI 助理", choices=["jutor", "claude3", "groq"], value="jutor")
|
1535 |
ai_chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="ai_chatbot", show_share_button=False, likeable=True, show_label=False)
|
1536 |
ai_msg = gr.Textbox(label="Message")
|
|
|
44 |
print("===gr__version__===")
|
45 |
print(gr.__version__)
|
46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
if is_env_local:
|
49 |
with open("local_config.json") as f:
|
|
|
1509 |
openai_chatbot_audio_input = gr.Audio(sources=["microphone"], type="filepath")
|
1510 |
msg = gr.Textbox(label="Message")
|
1511 |
send_button = gr.Button("Send", variant="primary")
|
1512 |
+
# with gr.Tab("GROQ"):
|
1513 |
+
# groq_ai_name = gr.Textbox(label="AI 助理名稱", value="groq", visible=False)
|
1514 |
+
# groq_chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="groq mode chatbot", show_share_button=False, likeable=True)
|
1515 |
+
# groq_msg = gr.Textbox(label="Message")
|
1516 |
+
# groq_send_button = gr.Button("Send", variant="primary")
|
1517 |
+
# with gr.Tab("JUTOR"):
|
1518 |
+
# jutor_ai_name = gr.Textbox(label="AI 助理名稱", value="jutor", visible=False)
|
1519 |
+
# jutor_chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="jutor mode chatbot", show_share_button=False, likeable=True)
|
1520 |
+
# jutor_msg = gr.Textbox(label="Message")
|
1521 |
+
# jutor_send_button = gr.Button("Send", variant="primary")
|
1522 |
+
# with gr.Tab("CLAUDE"):
|
1523 |
+
# claude_ai_name = gr.Textbox(label="AI 助理名稱", value="claude3", visible=False)
|
1524 |
+
# claude_chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="claude mode chatbot", show_share_button=False, likeable=True)
|
1525 |
+
# claude_msg = gr.Textbox(label="Message")
|
1526 |
+
# claude_send_button = gr.Button("Send", variant="primary")
|
1527 |
+
with gr.Tab("其他精靈"):
|
1528 |
ai_name = gr.Dropdown(label="選擇 AI 助理", choices=["jutor", "claude3", "groq"], value="jutor")
|
1529 |
ai_chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="ai_chatbot", show_share_button=False, likeable=True, show_label=False)
|
1530 |
ai_msg = gr.Textbox(label="Message")
|
requirements.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
gradio
|
2 |
pandas
|
3 |
openai>=1.0.0
|
4 |
requests
|
|
|
1 |
+
gradio
|
2 |
pandas
|
3 |
openai>=1.0.0
|
4 |
requests
|