Skip to content

Commit

Permalink
Add neon_should_respond context to all emitted Messages (#42)
Browse files Browse the repository at this point in the history
Fix typo in audio input gradio handling

Co-authored-by: Daniel McKnight <[email protected]>
  • Loading branch information
NeonDaniel and NeonDaniel authored Nov 27, 2023
1 parent c566fd9 commit 94c87c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions neon_iris/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ def _build_message(self, msg_type: str, data: dict,
"ident": ident or str(time()),
"username": username,
"user_profiles": user_profiles,
"neon_should_respond": True,
"timing": {},
"mq": {"routing_key": self.uid,
"message_id": self.connection.create_unique_id()}
Expand Down
2 changes: 1 addition & 1 deletion neon_iris/web_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def on_user_input(self, utterance: str,
context={"gradio": {"session": gradio_id},
"timing": {"wait_in_queue": in_queue,
"gradio_sent": time()}})
chat_history.append((audio_input, None))
chat_history.append(((audio_input, None), None))
if not self._await_response.wait(30):
LOG.error("No response received after 30s")
self._await_response.set()
Expand Down

0 comments on commit 94c87c2

Please sign in to comment.