Spaces:
Runtime error
Runtime error
fix: init model
Browse files
app.py
CHANGED
|
@@ -145,6 +145,9 @@ def initialize_model():
|
|
| 145 |
|
| 146 |
return tokenizer, model, spt, device
|
| 147 |
|
|
|
|
|
|
|
|
|
|
| 148 |
def process_single_audio_generation(
|
| 149 |
text_input: str,
|
| 150 |
audio_mode: str,
|
|
|
|
| 145 |
|
| 146 |
return tokenizer, model, spt, device
|
| 147 |
|
| 148 |
+
# Initialize model when starting the application
|
| 149 |
+
initialize_model()
|
| 150 |
+
|
| 151 |
def process_single_audio_generation(
|
| 152 |
text_input: str,
|
| 153 |
audio_mode: str,
|