Azdeen commited on
Commit
7781ec2
·
verified ·
1 Parent(s): 4a86465

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -23,8 +23,8 @@ logging.basicConfig(
23
  )
24
 
25
  TARGET_SAMPLE_RATE = 16_000
26
- HF_TOKEN_ENV = "auth_acess_data"
27
- LOGIN_TOKEN_ENV = "token_login"
28
 
29
 
30
  class DeepFilterNetUnavailable(RuntimeError):
@@ -35,7 +35,6 @@ class DeepFilterNetUnavailable(RuntimeError):
35
  def get_enhancer():
36
  """
37
  Load DeepFilterNet lazily.
38
-
39
  Lazy loading prevents the whole Space from crashing during startup and
40
  avoids loading the model until enhancement is actually requested.
41
  """
@@ -611,4 +610,4 @@ dff=pd.DataFrame(columns=['text', 'audio', 'samplerate', 'secs', 'speaker_id', '
611
  app=DataViewerApp(dff)
612
  s=app.start_tab1()
613
 
614
- s.queue(default_concurrency_limit=2).launch(show_error=True)
 
23
  )
24
 
25
  TARGET_SAMPLE_RATE = 16_000
26
+ HF_TOKEN_ENV = "DataBase"
27
+ LOGIN_TOKEN_ENV = "DataBase"
28
 
29
 
30
  class DeepFilterNetUnavailable(RuntimeError):
 
35
  def get_enhancer():
36
  """
37
  Load DeepFilterNet lazily.
 
38
  Lazy loading prevents the whole Space from crashing during startup and
39
  avoids loading the model until enhancement is actually requested.
40
  """
 
610
  app=DataViewerApp(dff)
611
  s=app.start_tab1()
612
 
613
+ s.queue(default_concurrency_limit=2).launch(debug=True,show_error=True, ssr_mode=False)