We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34ad955 commit b59871aCopy full SHA for b59871a
1 file changed
src/viewer/viewer.py
@@ -168,10 +168,8 @@ async def client(self) -> None:
168
while True:
169
self.clear()
170
self.display(json.loads(response))
171
- user_input = input()
172
- if user_input.strip() == "":
173
- user_input = "{}"
174
- await websocket.send(user_input)
+ payload = '{"user_input": ' + f'"{input()}"' + "}" # Must follow the valid JSON structure requirements
+ await websocket.send(payload)
175
response = await websocket.recv()
176
177
0 commit comments