Spaces:
Running
on
Zero
Running
on
Zero
fix: remove duration GPU and filename
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ download_path = ""
|
|
18 |
|
19 |
def sanitize_filename(filename):
|
20 |
match = re.match(r'^(.*? - .*?)(?: \[.*\]|\(.*\))?$', filename)
|
21 |
-
formatted_title = match.group(1) if match else
|
22 |
|
23 |
return sanitize_filename(formatted_title.strip())
|
24 |
|
@@ -183,7 +183,7 @@ def delete_folders_and_files(input_dir):
|
|
183 |
|
184 |
print("Cleanup completed.")
|
185 |
|
186 |
-
@spaces.GPU(
|
187 |
def process_audio(uploaded_file):
|
188 |
try:
|
189 |
yield "Processing audio...", None
|
|
|
18 |
|
19 |
def sanitize_filename(filename):
|
20 |
match = re.match(r'^(.*? - .*?)(?: \[.*\]|\(.*\))?$', filename)
|
21 |
+
formatted_title = match.group(1) if match else filename
|
22 |
|
23 |
return sanitize_filename(formatted_title.strip())
|
24 |
|
|
|
183 |
|
184 |
print("Cleanup completed.")
|
185 |
|
186 |
+
@spaces.GPU() # Adjust the duration as needed
|
187 |
def process_audio(uploaded_file):
|
188 |
try:
|
189 |
yield "Processing audio...", None
|