Helw150 commited on
Commit
d9f3c9f
1 Parent(s): fda1d4b

Return Behaves Oddly

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -105,7 +105,7 @@ def response(state: AppState, audio: tuple):
105
  outs = tuple(
106
  tuple(vec.cpu().numpy() for vec in tup) for tup in outs.past_key_values
107
  )
108
- return (
109
  AppState(conversation=state.conversation, model_outs=outs),
110
  state.conversation,
111
  )
 
105
  outs = tuple(
106
  tuple(vec.cpu().numpy() for vec in tup) for tup in outs.past_key_values
107
  )
108
+ yield (
109
  AppState(conversation=state.conversation, model_outs=outs),
110
  state.conversation,
111
  )