Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -440,17 +440,17 @@ title = """
|
|
| 440 |
</div>
|
| 441 |
"""
|
| 442 |
footer = '<div align="center"><p><em>Special thanks to <a href="https://huggingface.co/Weyaxi">Weyaxi</a> for the <a href="https://github.com/Weyaxi/scrape-open-llm-leaderboard">Open LLM Leaderboard Scraper</a> and <a href="https://github.com/cg123">Charles Goddard</a> for <a href="https://github.com/arcee-ai/mergekit">mergekit</a>.</em></p></div>'
|
| 443 |
-
|
| 444 |
-
|
| 445 |
-
|
| 446 |
-
|
| 447 |
-
|
| 448 |
-
|
| 449 |
-
|
| 450 |
|
| 451 |
-
|
| 452 |
|
| 453 |
# Main loop
|
| 454 |
-
|
| 455 |
merge_loop()
|
| 456 |
-
|
|
|
|
| 440 |
</div>
|
| 441 |
"""
|
| 442 |
footer = '<div align="center"><p><em>Special thanks to <a href="https://huggingface.co/Weyaxi">Weyaxi</a> for the <a href="https://github.com/Weyaxi/scrape-open-llm-leaderboard">Open LLM Leaderboard Scraper</a> and <a href="https://github.com/cg123">Charles Goddard</a> for <a href="https://github.com/arcee-ai/mergekit">mergekit</a>.</em></p></div>'
|
| 443 |
+
with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue")) as demo:
|
| 444 |
+
gr.Markdown(title)
|
| 445 |
+
logs = gr.Textbox(label="Logs")
|
| 446 |
+
demo.load(read_logs, None, logs, every=1)
|
| 447 |
+
leaderboard = gr.Dataframe(value=get_dataframe, datatype=["markdown", "number", "number", "number", "number", "number"], every=3600)
|
| 448 |
+
gr.Markdown(footer)
|
| 449 |
+
demo.queue().launch(server_name="0.0.0.0", show_error=True, prevent_thread_lock=True)
|
| 450 |
|
| 451 |
+
print("Start AutoMerger...")
|
| 452 |
|
| 453 |
# Main loop
|
| 454 |
+
while True:
|
| 455 |
merge_loop()
|
| 456 |
+
time.sleep(WAIT_TIME)
|