Spaces:
Running
Running
gpt-omni
commited on
Commit
·
10c5815
1
Parent(s):
fdfd286
update
Browse files
app.py
CHANGED
|
@@ -173,7 +173,6 @@ def generate_audio_data(snac_tokens, snacmodel, device=None):
|
|
| 173 |
return audio_data
|
| 174 |
|
| 175 |
|
| 176 |
-
@spaces.GPU
|
| 177 |
@torch.inference_mode()
|
| 178 |
def run_AT_batch_stream(
|
| 179 |
audio_path,
|
|
@@ -306,6 +305,7 @@ def run_AT_batch_stream(
|
|
| 306 |
# audio_data = np.frombuffer(chunk, dtype=np.int16)
|
| 307 |
|
| 308 |
|
|
|
|
| 309 |
def process_audio(audio):
|
| 310 |
filepath = audio
|
| 311 |
print(f"filepath: {filepath}")
|
|
|
|
| 173 |
return audio_data
|
| 174 |
|
| 175 |
|
|
|
|
| 176 |
@torch.inference_mode()
|
| 177 |
def run_AT_batch_stream(
|
| 178 |
audio_path,
|
|
|
|
| 305 |
# audio_data = np.frombuffer(chunk, dtype=np.int16)
|
| 306 |
|
| 307 |
|
| 308 |
+
@spaces.GPU
|
| 309 |
def process_audio(audio):
|
| 310 |
filepath = audio
|
| 311 |
print(f"filepath: {filepath}")
|