levimorin commited on
Commit
82815b7
1 Parent(s): c48f1f9
Files changed (1) hide show
  1. app.py +14 -5
app.py CHANGED
@@ -1,7 +1,16 @@
1
  import gradio as gr
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
5
-
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- iface.launch()
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
 
3
+ with gr.Blocks() as demo:
4
+ title = gr.HTML('<div id="component-2" class="block svelte-90oupt padded hide-container" style="border-style: solid; overflow: visible; min-width: min(0px, 100%); border-width: var(--block-border-width);"><div class="wrap center full svelte-zlszon hide" style="position: absolute; padding: 0px;"></div> <div class="svelte-1ed2p3z"><div class="prose svelte-1ybaih5" id="component-2"><h1 align="center" id="space-title" class="typewriter">Subnet 30 Leaderboard</h1></div></div></div>')
5
+ content = gr.HTML('<div id="component-3" class="block svelte-90oupt padded hide-container" style="border-style: solid; overflow: visible; min-width: min(0px, 100%); border-width: var(--block-border-width);"><div class="wrap center full svelte-zlszon hide" style="position: absolute; padding: 0px;"></div> <div class="svelte-1ed2p3z"><div class="prose svelte-1ybaih5" id="component-3"><h2 align="center" class="typewriter"><a href="https://github.com/dolchain/taonet-subnet" target="_blank">Subnet 30</a> is a <a href="https://bittensor.com/" target="_blank">Bittensor</a> subnet that rewards miners for participating in distributed training on the <a href="https://huggingface.co/datasets/tiiuae/falcon-refinedweb" target="_blank">Falcon Refined Web dataset</a>.<br> Miners collaborate to create top-performing models, earning higher emissions for their contributions.</h2></div></div></div>')
6
+ next_blocks = 55
7
+ next_mins = 11
8
+ next_reward_update = gr.HTML(f'<div id="component-4" class="block svelte-90oupt padded hide-container" style="border-style: solid; overflow: visible; min-width: min(0px, 100%); border-width: var(--block-border-width);"><div class="wrap center full svelte-zlszon hide" style="position: absolute; padding: 0px;"></div> <div class="svelte-1ed2p3z"><div class="prose svelte-1ybaih5" id="component-4"><div align="center" style="font-size: larger;">Next reward update: <b>{next_blocks}</b> blocks (~{next_mins} minutes)</div></div></div></div>')
9
+
10
+ top_models = gr.Label(label='Top Models', value={
11
+ "apple": 0.7,
12
+ "banana": 0.2,
13
+ "orange": 0.1
14
+ })
15
+
16
+ demo.launch(share=True)