Spaces:
Build error
Build error
send the download to utils.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from utils import *
|
| 3 |
import os
|
| 4 |
-
|
| 5 |
|
| 6 |
def build_demo():
|
| 7 |
|
|
@@ -92,11 +92,7 @@ def build_demo():
|
|
| 92 |
|
| 93 |
|
| 94 |
if __name__ == "__main__":
|
| 95 |
-
|
| 96 |
-
SONG_SOURCE = os.getenv("SONG_SOURCE")
|
| 97 |
-
TOKEN = os.getenv("TOKEN")
|
| 98 |
-
snapshot_download(repo_id=SONG_SOURCE, repo_type="dataset", token = TOKEN, local_dir = '/data/')
|
| 99 |
-
print(os.listdir('/data/'))
|
| 100 |
# elo_results_file, leaderboard_table_file = load_elo_results(elo_results_dir)
|
| 101 |
demo = build_demo()
|
| 102 |
demo.queue(max_size=20).launch(server_name="0.0.0.0")
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from utils import *
|
| 3 |
import os
|
| 4 |
+
|
| 5 |
|
| 6 |
def build_demo():
|
| 7 |
|
|
|
|
| 92 |
|
| 93 |
|
| 94 |
if __name__ == "__main__":
|
| 95 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
# elo_results_file, leaderboard_table_file = load_elo_results(elo_results_dir)
|
| 97 |
demo = build_demo()
|
| 98 |
demo.queue(max_size=20).launch(server_name="0.0.0.0")
|