AmberLJC commited on
Commit
d135385
1 Parent(s): 7a2f8b4

gradio version

Browse files
.gitignore CHANGED
@@ -1,2 +1,3 @@
 
1
  .envrc
2
  pyrightconfig.json
 
1
+ **/.DS_Store
2
  .envrc
3
  pyrightconfig.json
spit-fight-website/leaderboard.py CHANGED
@@ -27,11 +27,12 @@ def get_blocks_party_spaces_with_formula(formula=None):
27
 
28
  def create_scatter(x, y, z):
29
  df = get_blocks_party_spaces()
 
 
 
 
30
 
31
- if z is None or z == 'None':
32
- fig = plt.figure()
33
- ax = fig.add_subplot()
34
- scatter = ax.scatter(list(df[x]),list(df[y]))
35
  for i, label in enumerate(list(df['model'])):
36
  ax.text(list(df[x])[i],list(df[y])[i],str(label))
37
  ax.set_xlabel(x)
@@ -91,4 +92,4 @@ with block:
91
 
92
  block.load(get_blocks_party_spaces_with_formula, inputs=None, outputs=data)
93
 
94
- block.launch()
 
27
 
28
  def create_scatter(x, y, z):
29
  df = get_blocks_party_spaces()
30
+ if z is None or z == 'None' or z == '':
31
+ # fig = plt.figure()
32
+ # ax = fig.add_subplot()
33
+ fig, ax = plt.subplots()
34
 
35
+ ax.scatter(list(df[x]),list(df[y]))
 
 
 
36
  for i, label in enumerate(list(df['model'])):
37
  ax.text(list(df[x])[i],list(df[y])[i],str(label))
38
  ax.set_xlabel(x)
 
92
 
93
  block.load(get_blocks_party_spaces_with_formula, inputs=None, outputs=data)
94
 
95
+ block.launch(share=True)
spit-fight-website/requirements.txt CHANGED
@@ -1,2 +1,2 @@
1
- gradio
2
  plotly
 
1
+ gradio==3.23.0
2
  plotly