dlflannery commited on
Commit
930c640
·
verified ·
1 Parent(s): f699477

Update app.py

Browse files

delete dud data file _speech.txt

Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -50,6 +50,10 @@ def genUsageStats(do_reset=False):
50
  totalAudio = 0
51
  totalSpeech = 0
52
  totalImages = 0
 
 
 
 
53
  for user in unames:
54
  tokens4o_in = 0
55
  tokens4o_out = 0
 
50
  totalAudio = 0
51
  totalSpeech = 0
52
  totalImages = 0
53
+ if do_reset:
54
+ dudPath = dataDir + '_speech.txt'
55
+ if os.path.exists(dudPath):
56
+ os.remove(dudPath)
57
  for user in unames:
58
  tokens4o_in = 0
59
  tokens4o_out = 0