Update demos/musicgen_app.py
Browse files- demos/musicgen_app.py +1 -0
demos/musicgen_app.py
CHANGED
@@ -20,6 +20,7 @@ from audiocraft.models import MusicGen, MultiBandDiffusion
|
|
20 |
import multiprocessing as mp
|
21 |
|
22 |
# --- Utility Functions and Classes ---
|
|
|
23 |
|
24 |
class FileCleaner: # Unchanged
|
25 |
def __init__(self, file_lifetime: float = 3600):
|
|
|
20 |
import multiprocessing as mp
|
21 |
|
22 |
# --- Utility Functions and Classes ---
|
23 |
+
import warnings # <--- Import the warnings module!
|
24 |
|
25 |
class FileCleaner: # Unchanged
|
26 |
def __init__(self, file_lifetime: float = 3600):
|