Spaces:
Running
Running
housekeeping
Browse files
app.py
CHANGED
@@ -122,14 +122,13 @@ def generate_rhythm(query, state):
|
|
122 |
|
123 |
# Extract rhythm table
|
124 |
try:
|
125 |
-
assert 1 == 0
|
126 |
table = "|" + "|".join(text_output.split('|')[1:-1]) + "|"
|
127 |
audio_data = convert_table_to_audio(table, resolution)
|
128 |
|
129 |
# loop x4
|
130 |
audio_data = np.tile(audio_data, 4)
|
131 |
except:
|
132 |
-
audio_data =
|
133 |
|
134 |
return [(SR, audio_data), text_output]
|
135 |
# %%
|
|
|
122 |
|
123 |
# Extract rhythm table
|
124 |
try:
|
|
|
125 |
table = "|" + "|".join(text_output.split('|')[1:-1]) + "|"
|
126 |
audio_data = convert_table_to_audio(table, resolution)
|
127 |
|
128 |
# loop x4
|
129 |
audio_data = np.tile(audio_data, 4)
|
130 |
except:
|
131 |
+
audio_data = np.zeros(1)
|
132 |
|
133 |
return [(SR, audio_data), text_output]
|
134 |
# %%
|