Spaces:
Sleeping
Sleeping
vtrv.vls
commited on
Commit
·
2e30d3d
1
Parent(s):
7ebbe44
Tabs themes
Browse files
app.py
CHANGED
@@ -238,17 +238,18 @@ def tab_offline_arena():
|
|
238 |
select_criteria_2: {"value": [], "__type__": "update"},
|
239 |
select_criteria_3: {"value": [], "__type__": "update"}},
|
240 |
inputs=[], outputs=[select_criteria_1, select_criteria_2, select_criteria_3])
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
with gradio.
|
250 |
-
|
251 |
-
|
|
|
252 |
# with gradio.Blocks():
|
253 |
# select_tasks.change(lambda: {select_criteria: {"value": [], "__type__": "update"}}, inputs=[], outputs=[select_criteria])
|
254 |
|
@@ -256,7 +257,7 @@ def tab_offline_arena():
|
|
256 |
def build_demo():
|
257 |
# global original_dfs, available_models, gpt4t_dfs, haiku_dfs, llama_dfs
|
258 |
|
259 |
-
with gradio.Blocks(theme=gradio.themes.
|
260 |
# gradio.HTML(BANNER, elem_id="banner")
|
261 |
# gradio.Markdown(HEADER_MD.replace("{model_num}", str(len(original_dfs["-1"]))), elem_classes="markdown-text")
|
262 |
|
|
|
238 |
select_criteria_2: {"value": [], "__type__": "update"},
|
239 |
select_criteria_3: {"value": [], "__type__": "update"}},
|
240 |
inputs=[], outputs=[select_criteria_1, select_criteria_2, select_criteria_3])
|
241 |
+
with gradio.Tab("History"):
|
242 |
+
with gradio.Row():
|
243 |
+
with gradio.Column():
|
244 |
+
pass
|
245 |
+
with gradio.Column(scale=3):
|
246 |
+
chatbot_history = gradio.Chatbot([['hey', 'Hey!'], ["are we testing something?", None]], container=True)
|
247 |
+
with gradio.Column():
|
248 |
+
pass
|
249 |
+
with gradio.Tab("Models' outputs"):
|
250 |
+
with gradio.Row():
|
251 |
+
model_a = gradio.Text("Indeed we are.", label='Model A')
|
252 |
+
model_b = gradio.Text("Are we?", label='Model B')
|
253 |
# with gradio.Blocks():
|
254 |
# select_tasks.change(lambda: {select_criteria: {"value": [], "__type__": "update"}}, inputs=[], outputs=[select_criteria])
|
255 |
|
|
|
257 |
def build_demo():
|
258 |
# global original_dfs, available_models, gpt4t_dfs, haiku_dfs, llama_dfs
|
259 |
|
260 |
+
with gradio.Blocks(theme=gradio.themes.Default()) as demo: # , css=css, js=js_light
|
261 |
# gradio.HTML(BANNER, elem_id="banner")
|
262 |
# gradio.Markdown(HEADER_MD.replace("{model_num}", str(len(original_dfs["-1"]))), elem_classes="markdown-text")
|
263 |
|