Spaces:
Sleeping
Sleeping
gpt-omni
commited on
Commit
•
f8c4838
1
Parent(s):
fe53ad3
update
Browse files
app.py
CHANGED
@@ -175,7 +175,7 @@ def generate_audio_data(snac_tokens, snacmodel, device=None):
|
|
175 |
return audio_data
|
176 |
|
177 |
|
178 |
-
|
179 |
def run_AT_batch_stream(
|
180 |
audio_path,
|
181 |
stream_stride=4,
|
@@ -294,6 +294,10 @@ def run_AT_batch_stream(
|
|
294 |
model.clear_kv_cache()
|
295 |
return list_output
|
296 |
|
|
|
|
|
|
|
|
|
297 |
|
298 |
def process_audio(audio):
|
299 |
filepath = audio
|
|
|
175 |
return audio_data
|
176 |
|
177 |
|
178 |
+
@torch.inference_mode()
|
179 |
def run_AT_batch_stream(
|
180 |
audio_path,
|
181 |
stream_stride=4,
|
|
|
294 |
model.clear_kv_cache()
|
295 |
return list_output
|
296 |
|
297 |
+
|
298 |
+
for chunk in run_AT_batch_stream('./data/samples/output1.wav'):
|
299 |
+
pass
|
300 |
+
|
301 |
|
302 |
def process_audio(audio):
|
303 |
filepath = audio
|