Helw150 commited on
Commit
8aaf9c8
1 Parent(s): d9f3c9f

See if yield works now?

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -86,6 +86,7 @@ def response(state: AppState, audio: tuple):
86
  )
87
  else:
88
  causal_outs = state.model_outs
 
89
  prev_outs = causal_outs
90
  start = False
91
  for resp, outs in diva_audio(
@@ -97,6 +98,7 @@ def response(state: AppState, audio: tuple):
97
  start = True
98
  else:
99
  state.conversation[-1]["content"] = resp
 
100
  yield state, state.conversation
101
 
102
  del outs.logits
 
86
  )
87
  else:
88
  causal_outs = state.model_outs
89
+ state.model_outs = None
90
  prev_outs = causal_outs
91
  start = False
92
  for resp, outs in diva_audio(
 
98
  start = True
99
  else:
100
  state.conversation[-1]["content"] = resp
101
+ print(resp)
102
  yield state, state.conversation
103
 
104
  del outs.logits