Spaces:
Running
on
T4
Running
on
T4
Commit
•
6373f8d
1
Parent(s):
9905886
Add code
Browse files- inference.py +1 -0
inference.py
CHANGED
@@ -492,6 +492,7 @@ class OmniInference:
|
|
492 |
if begin_generate:
|
493 |
current_index += 1
|
494 |
if current_index == nums_generate:
|
|
|
495 |
current_index = 0
|
496 |
snac = get_snac(list_output, index, nums_generate)
|
497 |
audio_stream = generate_audio_data(snac, self.snacmodel, self.device)
|
|
|
492 |
if begin_generate:
|
493 |
current_index += 1
|
494 |
if current_index == nums_generate:
|
495 |
+
print("yielding")
|
496 |
current_index = 0
|
497 |
snac = get_snac(list_output, index, nums_generate)
|
498 |
audio_stream = generate_audio_data(snac, self.snacmodel, self.device)
|