Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -160,6 +160,9 @@ def generate_music(
|
|
| 160 |
threads = []
|
| 161 |
segment_outputs = [None] * run_n_segments # Store outputs in correct order
|
| 162 |
|
|
|
|
|
|
|
|
|
|
| 163 |
def process_segment(i, p):
|
| 164 |
nonlocal raw_output
|
| 165 |
section_text = p.replace('[start_of_segment]', '').replace('[end_of_segment]', '')
|
|
|
|
| 160 |
threads = []
|
| 161 |
segment_outputs = [None] * run_n_segments # Store outputs in correct order
|
| 162 |
|
| 163 |
+
start_of_segment = mmtokenizer.tokenize('[start_of_segment]')
|
| 164 |
+
end_of_segment = mmtokenizer.tokenize('[end_of_segment]')
|
| 165 |
+
|
| 166 |
def process_segment(i, p):
|
| 167 |
nonlocal raw_output
|
| 168 |
section_text = p.replace('[start_of_segment]', '').replace('[end_of_segment]', '')
|