youngtsai commited on
Commit
ea8279c
·
1 Parent(s): 4a57d65

with gr.Tab("飛特"):

Browse files
Files changed (3) hide show
  1. README.md +2 -2
  2. app.py +16 -22
  3. requirements.txt +1 -1
README.md CHANGED
@@ -1,10 +1,10 @@
1
  ---
2
- title: Vaitor
3
  emoji: 📚
4
  colorFrom: red
5
  colorTo: blue
6
  sdk: gradio
7
- sdk_version: 4.24.0
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", visible=False):
1519
- groq_ai_name = gr.Textbox(label="AI 助理名稱", value="groq", visible=False)
1520
- groq_chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="groq mode chatbot", show_share_button=False, likeable=True)
1521
- groq_msg = gr.Textbox(label="Message")
1522
- groq_send_button = gr.Button("Send", variant="primary")
1523
- with gr.Tab("JUTOR", visible=False):
1524
- jutor_ai_name = gr.Textbox(label="AI 助理名稱", value="jutor", visible=False)
1525
- jutor_chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="jutor mode chatbot", show_share_button=False, likeable=True)
1526
- jutor_msg = gr.Textbox(label="Message")
1527
- jutor_send_button = gr.Button("Send", variant="primary")
1528
- with gr.Tab("CLAUDE", visible=False):
1529
- claude_ai_name = gr.Textbox(label="AI 助理名稱", value="claude3", visible=False)
1530
- claude_chatbot = gr.Chatbot(avatar_images=[bot_avatar, user_avatar], label="claude mode chatbot", show_share_button=False, likeable=True)
1531
- claude_msg = gr.Textbox(label="Message")
1532
- claude_send_button = gr.Button("Send", variant="primary")
1533
- with gr.Tab("其他精靈", visible=True):
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>=4.24.0
2
  pandas
3
  openai>=1.0.0
4
  requests
 
1
+ gradio
2
  pandas
3
  openai>=1.0.0
4
  requests