Update app.py
Browse files
app.py
CHANGED
|
@@ -271,63 +271,63 @@ with demo:
|
|
| 271 |
# datatype=EVAL_TYPES,
|
| 272 |
# row_count=5,
|
| 273 |
# )
|
| 274 |
-
with gr.Accordion(
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
):
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
with gr.Row():
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
with gr.Row():
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
submit_button = gr.Button("Submit Eval")
|
| 318 |
-
submission_result = gr.Markdown()
|
| 319 |
-
submit_button.click(
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
)
|
| 331 |
|
| 332 |
with gr.Row():
|
| 333 |
with gr.Accordion("📙 Citation", open=False):
|
|
@@ -341,6 +341,6 @@ with demo:
|
|
| 341 |
gr.HTML(BOTTOM_LOGO)
|
| 342 |
|
| 343 |
scheduler = BackgroundScheduler()
|
| 344 |
-
scheduler.add_job(restart_space, "interval", seconds=
|
| 345 |
scheduler.start()
|
| 346 |
demo.queue(default_concurrency_limit=40).launch()
|
|
|
|
| 271 |
# datatype=EVAL_TYPES,
|
| 272 |
# row_count=5,
|
| 273 |
# )
|
| 274 |
+
# with gr.Accordion(
|
| 275 |
+
# f"⏳ Pending Evaluation Queue ({len(pending_eval_queue_df)})",
|
| 276 |
+
# open=False,
|
| 277 |
+
# ):
|
| 278 |
+
# with gr.Row():
|
| 279 |
+
# pending_eval_table = gr.components.Dataframe(
|
| 280 |
+
# value=pending_eval_queue_df,
|
| 281 |
+
# headers=EVAL_COLS,
|
| 282 |
+
# datatype=EVAL_TYPES,
|
| 283 |
+
# row_count=5,
|
| 284 |
+
# )
|
| 285 |
+
# with gr.Row():
|
| 286 |
+
# gr.Markdown("# ✉️✨ Submit your model here!", elem_classes="markdown-text")
|
| 287 |
+
|
| 288 |
+
# with gr.Row():
|
| 289 |
+
# with gr.Column():
|
| 290 |
+
# model_name_textbox = gr.Textbox(label="Model name")
|
| 291 |
+
# revision_name_textbox = gr.Textbox(label="Revision commit", placeholder="main")
|
| 292 |
+
# model_type = gr.Dropdown(
|
| 293 |
+
# choices=[t.to_str(" : ") for t in ModelType if t != ModelType.Unknown],
|
| 294 |
+
# label="Model type",
|
| 295 |
+
# multiselect=False,
|
| 296 |
+
# value=None,
|
| 297 |
+
# interactive=True,
|
| 298 |
+
# )
|
| 299 |
+
|
| 300 |
+
# with gr.Column():
|
| 301 |
+
# precision = gr.Dropdown(
|
| 302 |
+
# choices=[i.value.name for i in Precision if i != Precision.Unknown],
|
| 303 |
+
# label="Precision",
|
| 304 |
+
# multiselect=False,
|
| 305 |
+
# value="float16",
|
| 306 |
+
# interactive=True,
|
| 307 |
+
# )
|
| 308 |
+
# weight_type = gr.Dropdown(
|
| 309 |
+
# choices=[i.value.name for i in WeightType],
|
| 310 |
+
# label="Weights type",
|
| 311 |
+
# multiselect=False,
|
| 312 |
+
# value="Original",
|
| 313 |
+
# interactive=True,
|
| 314 |
+
# )
|
| 315 |
+
# base_model_name_textbox = gr.Textbox(label="Base model (for delta or adapter weights)")
|
| 316 |
+
|
| 317 |
+
# submit_button = gr.Button("Submit Eval")
|
| 318 |
+
# submission_result = gr.Markdown()
|
| 319 |
+
# submit_button.click(
|
| 320 |
+
# add_new_eval,
|
| 321 |
+
# [
|
| 322 |
+
# model_name_textbox,
|
| 323 |
+
# base_model_name_textbox,
|
| 324 |
+
# revision_name_textbox,
|
| 325 |
+
# precision,
|
| 326 |
+
# weight_type,
|
| 327 |
+
# model_type,
|
| 328 |
+
# ],
|
| 329 |
+
# submission_result,
|
| 330 |
+
# )
|
| 331 |
|
| 332 |
with gr.Row():
|
| 333 |
with gr.Accordion("📙 Citation", open=False):
|
|
|
|
| 341 |
gr.HTML(BOTTOM_LOGO)
|
| 342 |
|
| 343 |
scheduler = BackgroundScheduler()
|
| 344 |
+
scheduler.add_job(restart_space, "interval", seconds=2628000) # 1 Month
|
| 345 |
scheduler.start()
|
| 346 |
demo.queue(default_concurrency_limit=40).launch()
|