Fixed UI issue with deployed space
Browse files- arena/c4.py +5 -9
arena/c4.py
CHANGED
@@ -81,19 +81,15 @@ def yellow_model_callback(game, new_model_name):
|
|
81 |
def player_section(name, default):
|
82 |
all_model_names = LLM.all_model_names()
|
83 |
with gr.Row():
|
84 |
-
gr.
|
85 |
-
f'<div style="text-align: center;font-size:18px">{name} Player</div>'
|
86 |
-
)
|
87 |
with gr.Row():
|
88 |
dropdown = gr.Dropdown(
|
89 |
all_model_names, value=default, label="LLM", interactive=True
|
90 |
)
|
91 |
with gr.Row():
|
92 |
-
gr.
|
93 |
-
f'<div style="text-align: center;font-size:16px">Inner thoughts</div>'
|
94 |
-
)
|
95 |
with gr.Row():
|
96 |
-
thoughts = gr.
|
97 |
return thoughts, dropdown
|
98 |
|
99 |
|
@@ -108,7 +104,7 @@ def make_display():
|
|
108 |
game = gr.State()
|
109 |
|
110 |
with gr.Row():
|
111 |
-
gr.
|
112 |
'<div style="text-align: center;font-size:24px">Four-in-a-row LLM Showdown</div>'
|
113 |
)
|
114 |
with gr.Row():
|
@@ -116,7 +112,7 @@ def make_display():
|
|
116 |
red_thoughts, red_dropdown = player_section("Red", "gpt-4o-mini")
|
117 |
with gr.Column(scale=2):
|
118 |
with gr.Row():
|
119 |
-
message = gr.
|
120 |
'<div style="text-align: center;font-size:18px">The Board</div>'
|
121 |
)
|
122 |
with gr.Row():
|
|
|
81 |
def player_section(name, default):
|
82 |
all_model_names = LLM.all_model_names()
|
83 |
with gr.Row():
|
84 |
+
gr.HTML(f'<div style="text-align: center;font-size:18px">{name} Player</div>')
|
|
|
|
|
85 |
with gr.Row():
|
86 |
dropdown = gr.Dropdown(
|
87 |
all_model_names, value=default, label="LLM", interactive=True
|
88 |
)
|
89 |
with gr.Row():
|
90 |
+
gr.HTML('<div style="text-align: center;font-size:16px">Inner thoughts</div>')
|
|
|
|
|
91 |
with gr.Row():
|
92 |
+
thoughts = gr.HTML(label="Thoughts")
|
93 |
return thoughts, dropdown
|
94 |
|
95 |
|
|
|
104 |
game = gr.State()
|
105 |
|
106 |
with gr.Row():
|
107 |
+
gr.HTML(
|
108 |
'<div style="text-align: center;font-size:24px">Four-in-a-row LLM Showdown</div>'
|
109 |
)
|
110 |
with gr.Row():
|
|
|
112 |
red_thoughts, red_dropdown = player_section("Red", "gpt-4o-mini")
|
113 |
with gr.Column(scale=2):
|
114 |
with gr.Row():
|
115 |
+
message = gr.HTML(
|
116 |
'<div style="text-align: center;font-size:18px">The Board</div>'
|
117 |
)
|
118 |
with gr.Row():
|