yuanmingqi commited on
Commit
1511a62
ยท
1 Parent(s): e313dc5
Files changed (2) hide show
  1. app.py +0 -39
  2. model.py +1 -1
app.py CHANGED
@@ -6,16 +6,6 @@ def clear_form():
6
  return [None, None, None, None, None, None]
7
 
8
  with gr.Blocks(theme=gr.themes.Soft()) as demo:
9
- gr.Markdown("<center><h1 style='font-size: 40px;'>โš”๏ธReinforcement Learning Agent Arenaโš”๏ธ</h1></center>")
10
- gr.Markdown("""
11
- # ๐Ÿ“œ๐Ÿ“œ๐Ÿ“œ The workflow of RLArena
12
- - Select a benchmark, an environment, and a specific version.
13
- - Enter your github username and the link to your code.
14
- - Click "Submit" to evaluate your agent.
15
- # ๐Ÿ†๐Ÿ†๐Ÿ† Visit the leaderboard
16
- - Accelerate your RL research with the well-organized benchmark scores.
17
- # ๐Ÿ’ช๐Ÿ’ช๐Ÿ’ช Submit your agent now!
18
- """)
19
  with gr.Row():
20
  with gr.Column(scale=2):
21
  with gr.Row():
@@ -44,34 +34,5 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
44
  submit_button.click(submit_model, inputs=[github_username, benchmark, environment, version, training_steps, code_link, model_uploader], outputs=output)
45
  clear_button.click(clear_form, inputs=[], outputs=[github_username, benchmark, environment, version, training_steps, code_link])
46
 
47
- with gr.Row():
48
- # add multiple images with html
49
- html_images = """
50
- <div><br><br></div>
51
-
52
- # ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ Powered by
53
- <div style="display: flex; flex-wrap: wrap; gap: 10px; justify-content: left;">
54
- <div style="flex: 0 0 calc(25% - 10px); display: flex; justify-content: center; align-items: center;">
55
- <img src="/file=static/logo_polyu.png" alt="Image 1" style="max-width: 100%; height: auto;">
56
- </div>
57
- <div style="flex: 0 0 calc(25% - 10px); display: flex; justify-content: center; align-items: center;">
58
- <img src="/file=static/logo_sjtu.png" alt="Image 2" style="max-width: 100%; height: auto;">
59
- </div>
60
- <div style="flex: 0 0 calc(25% - 10px); display: flex; justify-content: center; align-items: center;">
61
- <img src="/file=static/logo_eias.png" alt="Image 3" style="max-width: 100%; height: auto;">
62
- </div>
63
- <div style="flex: 0 0 calc(25% - 10px); display: flex; justify-content: center; align-items: center;">
64
- <img src="/file=static/logo_idt.png" alt="Image 4" style="max-width: 100%; height: auto;">
65
- </div>
66
- <div style="flex: 0 0 calc(25% - 10px); display: flex; justify-content: center; align-items: center;">
67
- <img src="/file=static/logo_ustc.png" alt="Image 5" style="max-width: 100%; height: auto;">
68
- </div>
69
- <div style="flex: 0 0 calc(25% - 10px); display: flex; justify-content: center; align-items: center;">
70
- <img src="/file=static/logo_purdue.png" alt="Image 6" style="max-width: 100%; height: auto;">
71
- </div>
72
- </div>
73
- """
74
- gr.Markdown(html_images)
75
-
76
 
77
  demo.launch(allowed_paths=["./"])
 
6
  return [None, None, None, None, None, None]
7
 
8
  with gr.Blocks(theme=gr.themes.Soft()) as demo:
 
 
 
 
 
 
 
 
 
 
9
  with gr.Row():
10
  with gr.Column(scale=2):
11
  with gr.Row():
 
34
  submit_button.click(submit_model, inputs=[github_username, benchmark, environment, version, training_steps, code_link, model_uploader], outputs=output)
35
  clear_button.click(clear_form, inputs=[], outputs=[github_username, benchmark, environment, version, training_steps, code_link])
36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
 
38
  demo.launch(allowed_paths=["./"])
model.py CHANGED
@@ -1,5 +1,5 @@
1
  import gradio as gr
2
- # import torch as th
3
  import numpy as np
4
  from benchmarks import build_env
5
 
 
1
  import gradio as gr
2
+ import torch as th
3
  import numpy as np
4
  from benchmarks import build_env
5