czyoung commited on
Commit
ac9f0e5
·
verified ·
1 Parent(s): 5f60195

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -36,6 +36,7 @@ minimumGain = -45
36
  maximumGain = -5
37
  attenLimDB = 3
38
 
 
39
  try:
40
  raise(RuntimeError("Not an error"))
41
  #device = xm.xla_device()
@@ -46,6 +47,7 @@ except RuntimeError as e:
46
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
47
  print(f"Using {device} instead.")
48
  #device = xm.xla_device()
 
49
 
50
  # Instantiate and prepare model for training.
51
  dfModel, dfState, _ = init_df(model_base_dir="DeepFilterNet3")
@@ -111,6 +113,9 @@ audio_tabs = []
111
  temp_dir = tempfile.mkdtemp()
112
 
113
  if uploaded_file_paths is not None:
 
 
 
114
  # Reset valid_files?
115
  for uploaded_file in uploaded_file_paths:
116
  if not uploaded_file.name.endswith(supported_file_types):
 
36
  maximumGain = -5
37
  attenLimDB = 3
38
 
39
+ '''
40
  try:
41
  raise(RuntimeError("Not an error"))
42
  #device = xm.xla_device()
 
47
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
48
  print(f"Using {device} instead.")
49
  #device = xm.xla_device()
50
+ '''
51
 
52
  # Instantiate and prepare model for training.
53
  dfModel, dfState, _ = init_df(model_base_dir="DeepFilterNet3")
 
113
  temp_dir = tempfile.mkdtemp()
114
 
115
  if uploaded_file_paths is not None:
116
+ valid_files = []
117
+ file_paths = []
118
+ audio_tabs = []
119
  # Reset valid_files?
120
  for uploaded_file in uploaded_file_paths:
121
  if not uploaded_file.name.endswith(supported_file_types):