Yehor commited on
Commit
16b04a0
·
1 Parent(s): f20dd6c
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,6 +13,7 @@ if os.environ["SENTRY_DSN"]:
13
  dsn=os.environ["SENTRY_DSN"],
14
  send_default_pii=True,
15
  )
 
16
 
17
 
18
  def extract_chunks(file, min_sec, max_sec):
@@ -44,8 +45,7 @@ def extract_chunks(file, min_sec, max_sec):
44
  n_files += 1
45
 
46
  # Remove files
47
- for result in results:
48
- rmtree(result["filename"])
49
 
50
  mins = round(duration_secs / 60, 4)
51
 
 
13
  dsn=os.environ["SENTRY_DSN"],
14
  send_default_pii=True,
15
  )
16
+ print("Sentry SDK is activated")
17
 
18
 
19
  def extract_chunks(file, min_sec, max_sec):
 
45
  n_files += 1
46
 
47
  # Remove files
48
+ rmtree("chunks")
 
49
 
50
  mins = round(duration_secs / 60, 4)
51