philippds commited on
Commit
db08613
β€’
1 Parent(s): 9233e34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -0
app.py CHANGED
@@ -360,6 +360,29 @@ with block:
360
  outputs=gr_dataframe,
361
  )
362
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
363
  scheduler = BackgroundScheduler()
364
  scheduler.add_job(restart, "interval", seconds=86400)
365
  scheduler.start()
 
360
  outputs=gr_dataframe,
361
  )
362
 
363
+ with gr.Tab("Submit Model ✨") as submit_tab:
364
+ with gr.Row(elem_id="header-row"):
365
+ with gr.Column():
366
+ gr.HTML("<h1>Submit your own Results to the <a href='https://huggingface.co/spaces/hivex-research/hivex-leaderboard' target='_blank'>HIVEX Leaderboard</a> on Huggingface πŸ€—</h1>")
367
+
368
+ gr.HTML("<p>You can follow the steps in the <a href='https://github.com/hivex-research/hivex-results?tab=readme-ov-file#submit-your-own-results-to-the-hivex-leaderboard-on-huggingface-' target='_blank'>hivex-results repository</a> or stay here and follow these steps:</p>")
369
+
370
+ gr.HTML("<div style='padding-left: 20px; line-height: 1.6;'>\
371
+ <p><strong>1.</strong> Install all dependencies as described in the <a href='https://github.com/hivex-research/hivex/tree/main' target='_blank'>HIVEX repository README</a>.</p>\
372
+ <p><strong>2.</strong> Run the Train and Test Pipeline in the <a href='https://github.com/hivex-research/hivex/tree/main' target='_blank'>HIVEX repository</a>, either using <a href='https://github.com/hivex-research/hivex/tree/main?tab=readme-ov-file#-reproducing-paper-results' target='_blank'>ML-Agents</a> or with your <a href='https://github.com/hivex-research/hivex/tree/main?tab=readme-ov-file#-additional-environments-and-training-frameworks' target='_blank'>favorite framework</a>.</p>\
373
+ <p><strong>3.</strong> Clone the <a href='https://github.com/hivex-research/hivex-results/tree/master' target='_blank'>hivex-results repository</a>.</p>\
374
+ <p><strong>4.</strong> In your local hivex-results repository, add your results to the respective environment/train and environment/test folders. We have provided a <code>train_dummy_folder</code> and <code>test_dummy_folder</code> with results for training and testing on the Wind Farm Control environment.</p>\
375
+ <p><strong>5.</strong> Run <code>find_best_models.py</code>. This script generates data from your results.</p>\
376
+ <code>python tools/huggingface/find_best_models.py</code>\
377
+ <p><strong>6.</strong> Run <code>generate_hf_yaml.py</code>. Uncomment the environment data parser you need for your data. For example, for our dummy data, we need <code>generate_yaml_WFC(data['WindFarmControl'], key)</code>. This script takes the data generated in the previous step and turns it into folders including the checkpoint etc. of your training run and a <code>README.md</code>, which serves as the model card including important meta-data that is needed for the automatic fetching of the leaderboard of your model.</p>\
378
+ <code>python tools/huggingface/generate_hf_yaml.py</code>\
379
+ <p><strong>7.</strong> Finally, upload the content of the generated folder(s) to Huggingface πŸ€— as a new model.</p>\
380
+ <p><strong>8.</strong> Every 24 hours, the <a href='https://huggingface.co/spaces/hivex-research/hivex-leaderboard' target='_blank'>HIVEX Leaderboard</a> is fetching new models. We will review your model as soon as possible and add it to the verified list of models as soon as possible. If you have any questions, please feel free to reach out to p.d.siedler@gmail.com.</p>\
381
+ </div>")
382
+
383
+ gr.HTML("<h2>Congratulations, you did it πŸš€!</h2>")
384
+
385
+
386
  scheduler = BackgroundScheduler()
387
  scheduler.add_job(restart, "interval", seconds=86400)
388
  scheduler.start()