Jae-Won Chung commited on
Commit
e03fab5
1 Parent(s): 7a2f8b4

Try out HF spaces

Browse files
.gitignore CHANGED
@@ -1,2 +1,4 @@
1
  .envrc
2
  pyrightconfig.json
 
 
 
1
  .envrc
2
  pyrightconfig.json
3
+ .idea
4
+ .DS_Store
spit-fight-website/leaderboard.py → app.py RENAMED
@@ -5,8 +5,8 @@ from huggingface_hub.hf_api import SpaceInfo
5
  import matplotlib.pyplot as plt
6
  import plotly.express as px
7
 
8
- model_perf_table = 'tables/test.csv'
9
- logo_path = 'img/image.png'
10
 
11
 
12
  def get_blocks_party_spaces():
@@ -28,11 +28,11 @@ def get_blocks_party_spaces_with_formula(formula=None):
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)
38
  ax.set_ylabel(y)
 
5
  import matplotlib.pyplot as plt
6
  import plotly.express as px
7
 
8
+ model_perf_table = "data/test.csv"
9
+ logo_path = "img/image.png"
10
 
11
 
12
  def get_blocks_party_spaces():
 
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)
38
  ax.set_ylabel(y)
{spit-fight-website → assets}/img/image.png RENAMED
File without changes
{spit-fight-website/tables → data}/test.csv RENAMED
File without changes
requirements.txt CHANGED
@@ -1,5 +1,7 @@
1
  zeus-ml==0.4.0
2
  fastchat==0.2.14
3
- einops==0.6.1
4
- tyro==0.5.3
5
  rwkv==0.7.5
 
 
 
 
 
1
  zeus-ml==0.4.0
2
  fastchat==0.2.14
 
 
3
  rwkv==0.7.5
4
+ einops
5
+ tyro
6
+ plotpy
7
+ gradio
sharegpt/.DS_Store DELETED
Binary file (6.15 kB)
 
spit-fight-website/.DS_Store DELETED
Binary file (6.15 kB)
 
spit-fight-website/.idea/.gitignore DELETED
@@ -1,3 +0,0 @@
1
- # Default ignored files
2
- /shelf/
3
- /workspace.xml
 
 
 
 
spit-fight-website/.idea/inspectionProfiles/profiles_settings.xml DELETED
@@ -1,6 +0,0 @@
1
- <component name="InspectionProjectProfileManager">
2
- <settings>
3
- <option name="USE_PROJECT_PROFILE" value="false" />
4
- <version value="1.0" />
5
- </settings>
6
- </component>
 
 
 
 
 
 
 
spit-fight-website/.idea/misc.xml DELETED
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectRootManager" version="2" project-jdk-name="Python 2.7" project-jdk-type="Python SDK" />
4
- </project>
 
 
 
 
 
spit-fight-website/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/spit-fight-website.iml" filepath="$PROJECT_DIR$/.idea/spit-fight-website.iml" />
6
- </modules>
7
- </component>
8
- </project>
 
 
 
 
 
 
 
 
 
spit-fight-website/.idea/spit-fight-website.iml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="PYTHON_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$" />
5
- <orderEntry type="inheritedJdk" />
6
- <orderEntry type="sourceFolder" forTests="false" />
7
- </component>
8
- </module>
 
 
 
 
 
 
 
 
 
spit-fight-website/img/.DS_Store DELETED
Binary file (6.15 kB)
 
spit-fight-website/requirements.txt DELETED
@@ -1,2 +0,0 @@
1
- gradio
2
- plotly