Spaces:
Sleeping
Sleeping
vtrv.vls
commited on
Commit
·
7496919
1
Parent(s):
671a2d2
API fix
Browse files
app.py
CHANGED
@@ -41,8 +41,10 @@ MODEL_LIB = {'RUBASE': giga_gen, 'TINYLLAMA': tiny_gen, 'QWEN2INS1B': qwen_gen}
|
|
41 |
def tab_arena():
|
42 |
with gradio.Row():
|
43 |
with gradio.Column():
|
|
|
44 |
chatbot_left = gradio.Chatbot()
|
45 |
with gradio.Column():
|
|
|
46 |
chatbot_right = gradio.Chatbot()
|
47 |
|
48 |
with gradio.Row():
|
@@ -60,8 +62,10 @@ def tab_arena():
|
|
60 |
# time.sleep(2)
|
61 |
# return "", chat_history
|
62 |
|
63 |
-
|
64 |
-
|
|
|
|
|
65 |
|
66 |
# with gradio.Column():
|
67 |
# gradio.ChatInterface(
|
|
|
41 |
def tab_arena():
|
42 |
with gradio.Row():
|
43 |
with gradio.Column():
|
44 |
+
model_left = gradio.Dropdown(["TINYLLAMA", "QWEN2INS1B", "RUBASE"], value="TINYLLAMA", interactive=True, multiselect=False, label="Left model")
|
45 |
chatbot_left = gradio.Chatbot()
|
46 |
with gradio.Column():
|
47 |
+
model_right = gradio.Dropdown(["TINYLLAMA", "QWEN2INS1B", "RUBASE"], value= "RUBASE", interactive=True, multiselect=False, label="Right model")
|
48 |
chatbot_right = gradio.Chatbot()
|
49 |
|
50 |
with gradio.Row():
|
|
|
62 |
# time.sleep(2)
|
63 |
# return "", chat_history
|
64 |
|
65 |
+
model_right.submit()
|
66 |
+
|
67 |
+
msg.submit(giga_gen, [msg, chatbot_left], [msg, chatbot_left])
|
68 |
+
msg.submit(qwen_gen, [msg, chatbot_right], [msg, chatbot_right])
|
69 |
|
70 |
# with gradio.Column():
|
71 |
# gradio.ChatInterface(
|