Spaces:
Running
Running
Commit
·
1ed14cb
1
Parent(s):
54e9c4b
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def get_text(url):
|
|
| 22 |
file_stats = os.stat(out_file)
|
| 23 |
logging.info(f'Size of audio file in Bytes: {file_stats.st_size}')
|
| 24 |
|
| 25 |
-
if file_stats.st_size <= 20000000
|
| 26 |
base, ext = os.path.splitext(out_file)
|
| 27 |
new_file = base+'.mp3'
|
| 28 |
os.rename(out_file, new_file)
|
|
|
|
| 22 |
file_stats = os.stat(out_file)
|
| 23 |
logging.info(f'Size of audio file in Bytes: {file_stats.st_size}')
|
| 24 |
|
| 25 |
+
if file_stats.st_size <= 20000000
|
| 26 |
base, ext = os.path.splitext(out_file)
|
| 27 |
new_file = base+'.mp3'
|
| 28 |
os.rename(out_file, new_file)
|