ChrisWilson010101 commited on
Commit
aeb7b2b
·
1 Parent(s): d16810b

fix layout

Browse files
Files changed (1) hide show
  1. app.py +35 -38
app.py CHANGED
@@ -101,44 +101,41 @@ with demo:
101
  with gr.Accordion("Subnet Stats"):
102
  gr.HTML(f"""<h2 align = 'center' class="promova" style = 'font-size: 35px;' > Miner Stats</h2>""")
103
 
104
- with gr.Row():
105
- with gr.Column(scale=1):
106
- gr.BarPlot(
107
- daily_df,
108
- x="Date",
109
- y="Value",
110
- title="Daliy scraped data amount",
111
- # color="Date",
112
- # tooltip=["Date", "Value"],
113
- y_lim=[0, dalily_df_max * 1.5],
114
- x_title="Date",
115
- y_title="Amount of data scraped",
116
- height=500,
117
- width=500,
118
- scale=5,
119
- # color="Value",
120
- color_legend_position="top",
121
- # elem_classes="daily_scraped_data",
122
- )
123
- with gr.Column(scale=1):
124
- gr.BarPlot(
125
- hotkey_df,
126
- x="Hotkey",
127
- y="Value",
128
- title="Scraped data amount of each Miner",
129
- # color="Date",
130
- # tooltip=["Hotkey", "Value"],
131
- y_lim=[0, hotkey_df_max * 1.5],
132
- x_title="Date",
133
- y_title="Amount of data scraped",
134
- height=500,
135
- width=500,
136
- scale=5,
137
- # color="Value",
138
- x_label_angle=-30,
139
- color_legend_position="top",
140
- # elem_classes="daily_scraped_data",
141
- )
142
 
143
  gr.ScatterPlot(
144
  hotkey_daily_df_,
 
101
  with gr.Accordion("Subnet Stats"):
102
  gr.HTML(f"""<h2 align = 'center' class="promova" style = 'font-size: 35px;' > Miner Stats</h2>""")
103
 
104
+ gr.BarPlot(
105
+ daily_df,
106
+ x="Date",
107
+ y="Value",
108
+ title="Daliy scraped data amount",
109
+ # color="Date",
110
+ # tooltip=["Date", "Value"],
111
+ y_lim=[0, dalily_df_max * 1.5],
112
+ x_title="Date",
113
+ y_title="Amount of data scraped",
114
+ height=500,
115
+ width=500,
116
+ scale=5,
117
+ # color="Value",
118
+ color_legend_position="top",
119
+ # elem_classes="daily_scraped_data",
120
+ )
121
+ gr.BarPlot(
122
+ hotkey_df,
123
+ x="Hotkey",
124
+ y="Value",
125
+ title="Scraped data amount of each Miner",
126
+ # color="Date",
127
+ # tooltip=["Hotkey", "Value"],
128
+ y_lim=[0, hotkey_df_max * 1.5],
129
+ x_title="Date",
130
+ y_title="Amount of data scraped",
131
+ height=500,
132
+ width=500,
133
+ scale=5,
134
+ # color="Value",
135
+ x_label_angle=-30,
136
+ color_legend_position="top",
137
+ # elem_classes="daily_scraped_data",
138
+ )
 
 
 
139
 
140
  gr.ScatterPlot(
141
  hotkey_daily_df_,