Spaces:
Sleeping
Sleeping
gpt-omni
commited on
Commit
·
0d7b9d9
1
Parent(s):
7f2ec5e
update
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ from litgpt.generate.base import sample
|
|
38 |
|
39 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
40 |
ckpt_dir = "./checkpoint"
|
41 |
-
streaming_output =
|
42 |
|
43 |
|
44 |
OUT_CHUNK = 4096
|
@@ -332,7 +332,7 @@ demo = gr.Interface(
|
|
332 |
inputs=gr.Audio(type="filepath", label="Microphone"),
|
333 |
outputs=[gr.Audio(label="Response", streaming=streaming_output, autoplay=True)],
|
334 |
title="Chat Mini-Omni Demo",
|
335 |
-
|
336 |
)
|
337 |
|
338 |
|
|
|
38 |
|
39 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
40 |
ckpt_dir = "./checkpoint"
|
41 |
+
streaming_output = True
|
42 |
|
43 |
|
44 |
OUT_CHUNK = 4096
|
|
|
332 |
inputs=gr.Audio(type="filepath", label="Microphone"),
|
333 |
outputs=[gr.Audio(label="Response", streaming=streaming_output, autoplay=True)],
|
334 |
title="Chat Mini-Omni Demo",
|
335 |
+
live=True,
|
336 |
)
|
337 |
|
338 |
|