Spaces:
Sleeping
Sleeping
vtrv.vls
commited on
Commit
·
f25336d
1
Parent(s):
e8d03a0
API fix
Browse files
app.py
CHANGED
@@ -48,9 +48,11 @@ def tab_arena():
|
|
48 |
with gradio.Row():
|
49 |
with gradio.Column():
|
50 |
model_left = gradio.Dropdown(["TINYLLAMA", "QWEN2INS1B", "RUBASE"], value="TINYLLAMA", interactive=True, multiselect=False, label="Left model")
|
|
|
51 |
chatbot_left = gradio.Chatbot()
|
52 |
with gradio.Column():
|
53 |
model_right = gradio.Dropdown(["TINYLLAMA", "QWEN2INS1B", "RUBASE"], value= "RUBASE", interactive=True, multiselect=False, label="Right model")
|
|
|
54 |
chatbot_right = gradio.Chatbot()
|
55 |
|
56 |
with gradio.Row():
|
@@ -68,12 +70,6 @@ def tab_arena():
|
|
68 |
# time.sleep(2)
|
69 |
# return "", chat_history
|
70 |
|
71 |
-
model_left.change(change_model, [LEFT_MODEL, model_left], [LEFT_MODEL, model_left])
|
72 |
-
model_right.change(change_model, [RIGHT_MODEL, model_right], [LEFT_MODEL, model_left])
|
73 |
-
|
74 |
-
print(LEFT_MODEL)
|
75 |
-
print(RIGHT_MODEL)
|
76 |
-
|
77 |
msg.submit(giga_gen, [msg, chatbot_left], [msg, chatbot_left])
|
78 |
msg.submit(qwen_gen, [msg, chatbot_right], [msg, chatbot_right])
|
79 |
|
|
|
48 |
with gradio.Row():
|
49 |
with gradio.Column():
|
50 |
model_left = gradio.Dropdown(["TINYLLAMA", "QWEN2INS1B", "RUBASE"], value="TINYLLAMA", interactive=True, multiselect=False, label="Left model")
|
51 |
+
print(model_left)
|
52 |
chatbot_left = gradio.Chatbot()
|
53 |
with gradio.Column():
|
54 |
model_right = gradio.Dropdown(["TINYLLAMA", "QWEN2INS1B", "RUBASE"], value= "RUBASE", interactive=True, multiselect=False, label="Right model")
|
55 |
+
print(model_right)
|
56 |
chatbot_right = gradio.Chatbot()
|
57 |
|
58 |
with gradio.Row():
|
|
|
70 |
# time.sleep(2)
|
71 |
# return "", chat_history
|
72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
msg.submit(giga_gen, [msg, chatbot_left], [msg, chatbot_left])
|
74 |
msg.submit(qwen_gen, [msg, chatbot_right], [msg, chatbot_right])
|
75 |
|