Coco-18 commited on
Commit
1f4aae2
·
verified ·
1 Parent(s): e181043

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -168,7 +168,7 @@ def upload_reference_audio():
168
 
169
  @app.before_request
170
  def before_request():
171
- global REFERENCE_AUDIO_DIR # Add this line
172
  if not hasattr(g, 'initialized'):
173
  # This might return an updated path if the original fails
174
  updated_ref_dir = init_reference_audio(REFERENCE_AUDIO_DIR, OUTPUT_DIR)
@@ -178,7 +178,7 @@ def before_request():
178
  g.initialized = True
179
 
180
  if __name__ == "__main__":
181
- global REFERENCE_AUDIO_DIR # Add this line
182
  # This might return an updated path if the original fails
183
  updated_ref_dir = init_reference_audio(REFERENCE_AUDIO_DIR, OUTPUT_DIR)
184
  if updated_ref_dir and updated_ref_dir != REFERENCE_AUDIO_DIR:
 
168
 
169
  @app.before_request
170
  def before_request():
171
+ global REFERENCE_AUDIO_DIR # Remove this line
172
  if not hasattr(g, 'initialized'):
173
  # This might return an updated path if the original fails
174
  updated_ref_dir = init_reference_audio(REFERENCE_AUDIO_DIR, OUTPUT_DIR)
 
178
  g.initialized = True
179
 
180
  if __name__ == "__main__":
181
+ global REFERENCE_AUDIO_DIR # Remove this line
182
  # This might return an updated path if the original fails
183
  updated_ref_dir = init_reference_audio(REFERENCE_AUDIO_DIR, OUTPUT_DIR)
184
  if updated_ref_dir and updated_ref_dir != REFERENCE_AUDIO_DIR: