Spaces:
Running
Running
Update app.py
Browse filesdelete dud data file _speech.txt
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
|