Spaces:
Running
on
Zero
Running
on
Zero
Helw150
commited on
Commit
•
fda1d4b
1
Parent(s):
6aa1675
Just Tuple of Numpy
Browse files
app.py
CHANGED
@@ -79,7 +79,13 @@ def response(state: AppState, audio: tuple):
|
|
79 |
tuple(torch.tensor(vec).cuda() for vec in tup)
|
80 |
for tup in state.model_outs
|
81 |
)
|
82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
prev_outs = causal_outs
|
84 |
start = False
|
85 |
for resp, outs in diva_audio(
|
|
|
79 |
tuple(torch.tensor(vec).cuda() for vec in tup)
|
80 |
for tup in state.model_outs
|
81 |
)
|
82 |
+
causal_outs = (
|
83 |
+
CausalLMOutputWithPast(past_key_values=state.model_outs)
|
84 |
+
if state.model_outs
|
85 |
+
else None
|
86 |
+
)
|
87 |
+
else:
|
88 |
+
causal_outs = state.model_outs
|
89 |
prev_outs = causal_outs
|
90 |
start = False
|
91 |
for resp, outs in diva_audio(
|