Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -99,6 +99,10 @@ chtbA = gr.Chatbot(label="Chat with Model A", height=150)
|
|
| 99 |
chtbB = gr.Chatbot(label="Chat with Model B", height=150)
|
| 100 |
|
| 101 |
with gr.Blocks() as demo1:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
with gr.Column():
|
| 103 |
gr.ChatInterface(fn=replyA, chatbot=chtbA, additional_inputs=modelAchoice, additional_inputs_accordion=accrdnA, submit_btn="Submit to Model A")
|
| 104 |
gr.ChatInterface(fn=replyB, chatbot=chtbB, additional_inputs=modelBchoice, additional_inputs_accordion=accrdnB, submit_btn="Submit to Model B")
|
|
@@ -108,9 +112,7 @@ with gr.Blocks() as demo1:
|
|
| 108 |
btnA.click(modelA_button, inputs=None, outputs=None)
|
| 109 |
btnB.click(modelB_button, inputs=None, outputs=None)
|
| 110 |
|
| 111 |
-
demo = gr.TabbedInterface([demo1, demo2], ["Chat Arena", "Leaderboard"]
|
| 112 |
-
<h2 align='center'>Cast your vote to choose the best Small Language Model (100M-1.7B)!π</h2>
|
| 113 |
-
<h3 align='center'>[<a href="https://github.com/AstraBert/smollm-arena">GitHub</a>] [<a href="https://github.com/AstraBert/smollm-arena?tab=readme-ov-file#usage">Usage Guide</a>]""")
|
| 114 |
|
| 115 |
if __name__ == "__main__":
|
| 116 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|
|
|
|
| 99 |
chtbB = gr.Chatbot(label="Chat with Model B", height=150)
|
| 100 |
|
| 101 |
with gr.Blocks() as demo1:
|
| 102 |
+
with gr.Column():
|
| 103 |
+
gr.HTML("""<h1 align='center'>SmolLM Arena</h1>
|
| 104 |
+
<h2 align='center'>Cast your vote to choose the best Small Language Model (100M-1.7B)!π</h2>
|
| 105 |
+
<h3 align='center'>[<a href="https://github.com/AstraBert/smollm-arena">GitHub</a>] [<a href="https://github.com/AstraBert/smollm-arena?tab=readme-ov-file#usage">Usage Guide</a>]""")
|
| 106 |
with gr.Column():
|
| 107 |
gr.ChatInterface(fn=replyA, chatbot=chtbA, additional_inputs=modelAchoice, additional_inputs_accordion=accrdnA, submit_btn="Submit to Model A")
|
| 108 |
gr.ChatInterface(fn=replyB, chatbot=chtbB, additional_inputs=modelBchoice, additional_inputs_accordion=accrdnB, submit_btn="Submit to Model B")
|
|
|
|
| 112 |
btnA.click(modelA_button, inputs=None, outputs=None)
|
| 113 |
btnB.click(modelB_button, inputs=None, outputs=None)
|
| 114 |
|
| 115 |
+
demo = gr.TabbedInterface([demo1, demo2], ["Chat Arena", "Leaderboard"])
|
|
|
|
|
|
|
| 116 |
|
| 117 |
if __name__ == "__main__":
|
| 118 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|