samNakamoto commited on
Commit
f8d4c4b
1 Parent(s): 85b5832

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -14,11 +14,12 @@ import time
14
  FONT = """<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap" rel="stylesheet">"""
15
  HEADER = """
16
  <h2 align="center" class="typewriter">Welcome to the Yama - CommuneAI Resume Subnet Leaderboard!</h2>
 
17
  EVALUATION_HEADER = """<h3 align="center">Evaluation Details</h3>"""
18
  EVALUATION_DETAILS = """<p align="center"><b>Name</b> represents the model name. <b>Rewards / Day</b> indicates the expected daily rewards for each model in <b>$COMAI</b>. <b>UID</b> is the unique identifier of the miner. <b>$USD Value</b> is the estimated dollar value of the daily rewards.</p>"""
19
- netuid = 18
20
- for i in range(32):
21
- node_url = f"wss://commune-api-node-{i}.communeai.net"
22
 
23
  def get_validator_uids(client, netuid):
24
  modules = cast(dict[str, Any], get_map_modules(client, netuid=netuid))
@@ -181,7 +182,7 @@ custom_css = """
181
  margin-left: auto;
182
  margin-right: auto;
183
  width: 50%;
184
- #}
185
  """
186
 
187
  with gr.Blocks(theme=seafoam, analytics_enabled=True, css=custom_css) as demo:
@@ -190,7 +191,6 @@ with gr.Blocks(theme=seafoam, analytics_enabled=True, css=custom_css) as demo:
190
  gr.HTML(HEADER)
191
  gr.HTML(EVALUATION_HEADER)
192
  gr.HTML(EVALUATION_DETAILS)
193
- gr.HTML(LANGUAGES_SUPPORTED)
194
 
195
  total_usd_value_html = gr.HTML(
196
  elem_id="total-usd-value",
@@ -217,4 +217,4 @@ with gr.Blocks(theme=seafoam, analytics_enabled=True, css=custom_css) as demo:
217
  leaderboard_table, total_usd_value_html])
218
 
219
  if __name__ == "__main__":
220
- demo.launch()
 
14
  FONT = """<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap" rel="stylesheet">"""
15
  HEADER = """
16
  <h2 align="center" class="typewriter">Welcome to the Yama - CommuneAI Resume Subnet Leaderboard!</h2>
17
+ """
18
  EVALUATION_HEADER = """<h3 align="center">Evaluation Details</h3>"""
19
  EVALUATION_DETAILS = """<p align="center"><b>Name</b> represents the model name. <b>Rewards / Day</b> indicates the expected daily rewards for each model in <b>$COMAI</b>. <b>UID</b> is the unique identifier of the miner. <b>$USD Value</b> is the estimated dollar value of the daily rewards.</p>"""
20
+
21
+ netuid = 8
22
+ node_url = "wss://commune-api-node-2.communeai.net"
23
 
24
  def get_validator_uids(client, netuid):
25
  modules = cast(dict[str, Any], get_map_modules(client, netuid=netuid))
 
182
  margin-left: auto;
183
  margin-right: auto;
184
  width: 50%;
185
+ }
186
  """
187
 
188
  with gr.Blocks(theme=seafoam, analytics_enabled=True, css=custom_css) as demo:
 
191
  gr.HTML(HEADER)
192
  gr.HTML(EVALUATION_HEADER)
193
  gr.HTML(EVALUATION_DETAILS)
 
194
 
195
  total_usd_value_html = gr.HTML(
196
  elem_id="total-usd-value",
 
217
  leaderboard_table, total_usd_value_html])
218
 
219
  if __name__ == "__main__":
220
+ demo.launch()