NIIHAAD commited on
Commit
47a88c5
·
1 Parent(s): 7e1871b

update app.py

Browse files
app.py CHANGED
@@ -20,7 +20,7 @@ os.makedirs(dataset_dir, exist_ok=True)
20
  metadata_cols = ["name", "num_ratings", "tags", "username",
21
  "description", "created", "license", "num_downloads", "channels",
22
  "filesize","num_comments", "category_is_user_provided", "duration", "avg_rating",
23
- "category", "subcategory", "type","samplerate"
24
  ]
25
 
26
  def fetch_sound_metadata(sound_url):
@@ -57,7 +57,9 @@ def fetch_sound_metadata(sound_url):
57
  "category": getattr(sound, "category", "Unknown"),
58
  "subcategory": getattr(sound, "subcategory", "Other"),
59
  "type": getattr(sound, "type", ""),
60
- "samplerate": getattr(sound, "samplerate", 0)
 
 
61
  }
62
  return pd.DataFrame([data])
63
 
 
20
  metadata_cols = ["name", "num_ratings", "tags", "username",
21
  "description", "created", "license", "num_downloads", "channels",
22
  "filesize","num_comments", "category_is_user_provided", "duration", "avg_rating",
23
+ "category", "subcategory", "type","samplerate , beat_count ,amplitude_peak_ratio "
24
  ]
25
 
26
  def fetch_sound_metadata(sound_url):
 
57
  "category": getattr(sound, "category", "Unknown"),
58
  "subcategory": getattr(sound, "subcategory", "Other"),
59
  "type": getattr(sound, "type", ""),
60
+ "samplerate": getattr(sound, "samplerate", 0),
61
+ "amplitude_peak_ratio":getattr(sound, "amplitude_peak_ratio", ""),
62
+ "beat_count":getattr(sound, "beat_count", "")
63
  }
64
  return pd.DataFrame([data])
65
 
effectSound/avg_rating_transformer_effectSound.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37b2862f96050ad72ab3964d30f4f2d3908dd6b5e746f150c1baea5d2cdb2bbf
3
+ size 944
effectSound/effectSound_onehot_cols.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3de47c718ff02e366470f28167a8e5736829fa84b0d34531ac046ceaec5371fa
3
+ size 761
effectSound/effectSound_subcategory_cols.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6796b185bc36b2a0961c0a0b22f813f473eec2962cfa5c20a013f0f328ae8021
3
+ size 418
effectSound/est_num_downloads_effectSound.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd69b4b945f61331c7778a7ff3366a856191beff40ed439ed78705c1f94440ef
3
+ size 831
music/avg_rating_transformer_music.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:29e054a504fd9193b232384f5a2799cad18e54903f03cbfc999a77547feff2d2
3
+ size 944
music/est_num_downloads_music.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:435f88fd8e8f46a970b39b2f255920c298c20e41cf558276dae8b09a40bd56be
3
+ size 831
music/music_onehot_cols.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:554cb8135c47967de9f480942f6d09c79b2ac8440adecebd1dd8c013444d195a
3
+ size 771
music/music_subcategory_cols.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a51f89fa69f26d5785cd8518fc594ceffbc959493572ac9b06162bfd4f509247
3
+ size 377