Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def load_model():
|
|
42 |
print("Model loaded successfully.")
|
43 |
return model, model_config
|
44 |
|
45 |
-
model, model_config = load_model()
|
46 |
|
47 |
# Function to set up, generate, and process the audio
|
48 |
@spaces.GPU(duration=60) # Allocate GPU only when this function is called
|
|
|
42 |
print("Model loaded successfully.")
|
43 |
return model, model_config
|
44 |
|
45 |
+
global model, model_config = load_model()
|
46 |
|
47 |
# Function to set up, generate, and process the audio
|
48 |
@spaces.GPU(duration=60) # Allocate GPU only when this function is called
|