mrfakename commited on
Commit
69be213
1 Parent(s): c62c303

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -32,7 +32,7 @@ DB_NAME = "database.db"
32
  # If /data available => means local storage is enabled => let's use it!
33
  DB_PATH = f"/data/{DB_NAME}" if os.path.isdir("/data") else DB_NAME
34
 
35
- AUDIO_DATASET_ID = "ttseval/tts-arena-new"
36
  CITATION_TEXT = """@misc{tts-arena,
37
  title = {Text to Speech Arena},
38
  author = {mrfakename and Srivastav, Vaibhav and Pouget, Lucain and Fourrier, Clémentine},
@@ -124,7 +124,7 @@ scheduler = CommitScheduler(
124
  )
125
 
126
  # Load audio dataset
127
- audio_dataset = load_dataset(AUDIO_DATASET_ID)
128
 
129
  ####################################
130
  # Router API
@@ -191,10 +191,10 @@ A list of the models, based on how highly they are ranked!
191
 
192
 
193
 
194
- def reload_audio_dataset():
195
- global audio_dataset
196
- audio_dataset = load_dataset(AUDIO_DATASET_ID)
197
- return 'Reload Audio Dataset'
198
 
199
  def del_db(txt):
200
  if not txt.lower() == 'delete db':
@@ -486,7 +486,7 @@ with gr.Blocks() as about:
486
  gr.Markdown(ABOUT)
487
  with gr.Blocks() as admin:
488
  rdb = gr.Button("Reload Audio Dataset")
489
- rdb.click(reload_audio_dataset, outputs=rdb)
490
  with gr.Group():
491
  dbtext = gr.Textbox(label="Type \"delete db\" to confirm", placeholder="delete db")
492
  ddb = gr.Button("Delete DB")
 
32
  # If /data available => means local storage is enabled => let's use it!
33
  DB_PATH = f"/data/{DB_NAME}" if os.path.isdir("/data") else DB_NAME
34
 
35
+ # AUDIO_DATASET_ID = "ttseval/tts-arena-new"
36
  CITATION_TEXT = """@misc{tts-arena,
37
  title = {Text to Speech Arena},
38
  author = {mrfakename and Srivastav, Vaibhav and Pouget, Lucain and Fourrier, Clémentine},
 
124
  )
125
 
126
  # Load audio dataset
127
+ # audio_dataset = load_dataset(AUDIO_DATASET_ID)
128
 
129
  ####################################
130
  # Router API
 
191
 
192
 
193
 
194
+ # def reload_audio_dataset():
195
+ # global audio_dataset
196
+ # audio_dataset = load_dataset(AUDIO_DATASET_ID)
197
+ # return 'Reload Audio Dataset'
198
 
199
  def del_db(txt):
200
  if not txt.lower() == 'delete db':
 
486
  gr.Markdown(ABOUT)
487
  with gr.Blocks() as admin:
488
  rdb = gr.Button("Reload Audio Dataset")
489
+ # rdb.click(reload_audio_dataset, outputs=rdb)
490
  with gr.Group():
491
  dbtext = gr.Textbox(label="Type \"delete db\" to confirm", placeholder="delete db")
492
  ddb = gr.Button("Delete DB")