Spaces:
Runtime error
Runtime error
enhance
Browse files
app.py
CHANGED
@@ -15,9 +15,10 @@ from apscheduler.schedulers.background import BackgroundScheduler
|
|
15 |
|
16 |
load_dotenv()
|
17 |
|
18 |
-
|
|
|
19 |
IMAGE = """<a href="https://discord.gg/jqVphNsB4H" target="_blank"><img src="https://i.ibb.co/88wyVQ7/nousgirl.png" alt="nousgirl" style="margin: auto; width: 20%; border: 0;" /></a>"""
|
20 |
-
HEADER = """<h2 align="center"><a href="https://github.com/NousResearch/finetuning-subnet" target="_blank">Subnet 6</a> is a <a href="https://bittensor.com/" target="_blank">Bittensor</a> subnet that incentivizes the creation of the best open models by evaluating submissions on a constant stream of newly generated syntheic GPT-4 data. The models with the best head-to-head loss on the evaluation data receive a steady emission of TAO.</h3>"""
|
21 |
DETAILS = """<b>Name</b> is the 🤗 Hugging Face model name (click to go to the model card). <b>Rewards / Day</b> are the expected rewards per day for each model. <b>Last Average Loss</b> is the last loss value on the evaluation data for the model as calculated by a validator (lower is better). <b>UID</b> is the Bittensor user id of the submitter. <b>Block</b> is the Bittensor block that the model was submitted in. More stats on <a href="https://taostats.io/subnets/netuid-6/" target="_blank">taostats</a>."""
|
22 |
VALIDATOR_WANDB_PROJECT = os.environ["VALIDATOR_WANDB_PROJECT"]
|
23 |
H4_TOKEN = os.environ.get("H4_TOKEN", None)
|
@@ -134,8 +135,9 @@ leaderboard_df.sort(key=lambda x: x.incentive, reverse=True)
|
|
134 |
|
135 |
losses = get_avg_loss([x.uid for x in leaderboard_df])
|
136 |
|
137 |
-
demo = gr.Blocks()
|
138 |
with demo:
|
|
|
139 |
gr.HTML(TITLE)
|
140 |
gr.HTML(IMAGE)
|
141 |
gr.HTML(HEADER)
|
|
|
15 |
|
16 |
load_dotenv()
|
17 |
|
18 |
+
FONT = """<link href="https://fonts.cdnfonts.com/css/jmh-typewriter" rel="stylesheet">"""
|
19 |
+
TITLE = """<h1 align="center" id="space-title" class="typewriter">Subnet 6 Leaderboard</h1>"""
|
20 |
IMAGE = """<a href="https://discord.gg/jqVphNsB4H" target="_blank"><img src="https://i.ibb.co/88wyVQ7/nousgirl.png" alt="nousgirl" style="margin: auto; width: 20%; border: 0;" /></a>"""
|
21 |
+
HEADER = """<h2 align="center" class="typewriter"><a href="https://github.com/NousResearch/finetuning-subnet" target="_blank">Subnet 6</a> is a <a href="https://bittensor.com/" target="_blank">Bittensor</a> subnet that incentivizes the creation of the best open models by evaluating submissions on a constant stream of newly generated syntheic GPT-4 data. The models with the best head-to-head loss on the evaluation data receive a steady emission of TAO.</h3>"""
|
22 |
DETAILS = """<b>Name</b> is the 🤗 Hugging Face model name (click to go to the model card). <b>Rewards / Day</b> are the expected rewards per day for each model. <b>Last Average Loss</b> is the last loss value on the evaluation data for the model as calculated by a validator (lower is better). <b>UID</b> is the Bittensor user id of the submitter. <b>Block</b> is the Bittensor block that the model was submitted in. More stats on <a href="https://taostats.io/subnets/netuid-6/" target="_blank">taostats</a>."""
|
23 |
VALIDATOR_WANDB_PROJECT = os.environ["VALIDATOR_WANDB_PROJECT"]
|
24 |
H4_TOKEN = os.environ.get("H4_TOKEN", None)
|
|
|
135 |
|
136 |
losses = get_avg_loss([x.uid for x in leaderboard_df])
|
137 |
|
138 |
+
demo = gr.Blocks(css=".typewriter {font-family: 'JMH Typewriter', sans-serif;}")
|
139 |
with demo:
|
140 |
+
gr.HTML(FONT)
|
141 |
gr.HTML(TITLE)
|
142 |
gr.HTML(IMAGE)
|
143 |
gr.HTML(HEADER)
|