Disabled Restart
Browse files
app.py
CHANGED
@@ -37,7 +37,6 @@ href_data_nongreedy = prep_df(load_all_data(local_result_dir, subdir="temperatur
|
|
37 |
col_types_href = ["number"] + ["markdown"] + ["number"] * int((len(href_data_greedy.columns) - 1) / 2)
|
38 |
col_types_href_hidden = ["number"] + ["markdown"] + ["number"] * (len(href_data_greedy.columns) - 1)
|
39 |
categories = ['Average', 'Brainstorm', 'Open QA', 'Closed QA', 'Extract', 'Generation', 'Rewrite', 'Summarize', 'Classify', "Reasoning Over Numerical Data", "Multi-Document Synthesis", "Fact Checking or Attributed QA"]
|
40 |
-
# categories = ['Average', 'Brainstorm', 'Open QA', 'Closed QA', 'Extract', 'Generation', 'Rewrite', 'Summarize', 'Classify']
|
41 |
|
42 |
# for showing random samples
|
43 |
eval_set = load_dataset(eval_set_repo, use_auth_token=COLLAB_TOKEN, split="dev")
|
@@ -91,9 +90,6 @@ with gr.Blocks(css=custom_css) as app:
|
|
91 |
with gr.Column(scale=8):
|
92 |
gr.Markdown(TOP_TEXT.format(str(total_models)))
|
93 |
with gr.Column(scale=2):
|
94 |
-
# search = gr.Textbox(label="Model Search (delimit with , )", placeholder="Regex search for a model")
|
95 |
-
# filter_button = gr.Checkbox(label="Include AI2 training runs (or type ai2 above).", interactive=True)
|
96 |
-
# img = gr.Image(value="https://private-user-images.githubusercontent.com/10695622/310698241-24ed272a-0844-451f-b414-fde57478703e.png", width=500)
|
97 |
gr.Markdown("""
|
98 |
<img src="file/src/logo.png" height="130">
|
99 |
""")
|
@@ -120,29 +116,6 @@ with gr.Blocks(css=custom_css) as app:
|
|
120 |
interactive=False,
|
121 |
height=1000,
|
122 |
)
|
123 |
-
# with gr.TabItem("Non-Greedy"):
|
124 |
-
# with gr.Row():
|
125 |
-
# search_2 = gr.Textbox(label="Model Search (delimit with , )",
|
126 |
-
# # placeholder="Model Search (delimit with , )",
|
127 |
-
# show_label=True)
|
128 |
-
# category_selector_2 = gr.Dropdown(categories, label="Sorted By", value="Average",
|
129 |
-
# multiselect=False, show_label=True, elem_id="category_selector")
|
130 |
-
# with gr.Row():
|
131 |
-
# # reference data
|
132 |
-
# rewardbench_table_hidden_nongreedy = gr.Dataframe(
|
133 |
-
# href_data_nongreedy.values,
|
134 |
-
# datatype=col_types_href_hidden,
|
135 |
-
# headers=href_data_nongreedy.columns.tolist(),
|
136 |
-
# visible=False,
|
137 |
-
# )
|
138 |
-
# rewardbench_table_nongreedy = gr.Dataframe(
|
139 |
-
# regex_table(href_data_nongreedy.copy(), "", "Average"),
|
140 |
-
# datatype=col_types_href,
|
141 |
-
# headers=href_data_nongreedy.columns.tolist(),
|
142 |
-
# elem_id="href_data_nongreedy",
|
143 |
-
# interactive=False,
|
144 |
-
# height=1000,
|
145 |
-
# )
|
146 |
with gr.TabItem("About"):
|
147 |
with gr.Row():
|
148 |
gr.Markdown(ABOUT_TEXT)
|
@@ -180,7 +153,7 @@ with gr.Blocks(css=custom_css) as app:
|
|
180 |
)
|
181 |
|
182 |
|
183 |
-
scheduler = BackgroundScheduler()
|
184 |
-
scheduler.add_job(restart_space, "interval", seconds=10800) # restarted every 3h
|
185 |
-
scheduler.start()
|
186 |
app.launch(allowed_paths=['src/']) # had .queue() before launch before... not sure if that's necessary
|
|
|
37 |
col_types_href = ["number"] + ["markdown"] + ["number"] * int((len(href_data_greedy.columns) - 1) / 2)
|
38 |
col_types_href_hidden = ["number"] + ["markdown"] + ["number"] * (len(href_data_greedy.columns) - 1)
|
39 |
categories = ['Average', 'Brainstorm', 'Open QA', 'Closed QA', 'Extract', 'Generation', 'Rewrite', 'Summarize', 'Classify', "Reasoning Over Numerical Data", "Multi-Document Synthesis", "Fact Checking or Attributed QA"]
|
|
|
40 |
|
41 |
# for showing random samples
|
42 |
eval_set = load_dataset(eval_set_repo, use_auth_token=COLLAB_TOKEN, split="dev")
|
|
|
90 |
with gr.Column(scale=8):
|
91 |
gr.Markdown(TOP_TEXT.format(str(total_models)))
|
92 |
with gr.Column(scale=2):
|
|
|
|
|
|
|
93 |
gr.Markdown("""
|
94 |
<img src="file/src/logo.png" height="130">
|
95 |
""")
|
|
|
116 |
interactive=False,
|
117 |
height=1000,
|
118 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
with gr.TabItem("About"):
|
120 |
with gr.Row():
|
121 |
gr.Markdown(ABOUT_TEXT)
|
|
|
153 |
)
|
154 |
|
155 |
|
156 |
+
# scheduler = BackgroundScheduler()
|
157 |
+
# scheduler.add_job(restart_space, "interval", seconds=10800) # restarted every 3h
|
158 |
+
# scheduler.start()
|
159 |
app.launch(allowed_paths=['src/']) # had .queue() before launch before... not sure if that's necessary
|