Skip to content

Commit

Permalink
Fix nbqa black issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaranvpl committed Jan 10, 2025
1 parent c483d89 commit c2ac601
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions notebook/agentchat_websockets.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -410,14 +410,14 @@
" type: msg.type || '',\n",
" content: formatMessageContent(msg.content)\n",
" };\n",
" \n",
"\n",
" // Add any additional fields\n",
" for (const [key, value] of Object.entries(msg)) {\n",
" if (key !== 'type' && key !== 'content') {\n",
" formatted[key] = value;\n",
" }\n",
" }\n",
" \n",
"\n",
" return JSON.stringify(formatted, null, 2);\n",
" } catch (e) {\n",
" return String(data);\n",
Expand Down Expand Up @@ -486,7 +486,7 @@
" </ul>\n",
" <script>\n",
" {js_formatters}\n",
" \n",
"\n",
" var ws = new WebSocket(\"ws://localhost:8082\");\n",
" ws.onmessage = function(event) {{\n",
" var messages = document.getElementById('messages')\n",
Expand All @@ -496,7 +496,7 @@
" message.appendChild(content)\n",
" messages.appendChild(message)\n",
" }};\n",
" \n",
"\n",
" function sendMessage(event) {{\n",
" var input = document.getElementById(\"messageText\")\n",
" ws.send(input.value)\n",
Expand All @@ -518,7 +518,7 @@
" def __init__(self, *args, **kwargs):\n",
" super().__init__(*args, directory=temp_dir, **kwargs)\n",
"\n",
" def do_GET(self):\n",
" def do_GET(self): # noqa: N802\n",
" if self.path == \"/\":\n",
" self.path = \"/chat.html\"\n",
" return SimpleHTTPRequestHandler.do_GET(self)\n",
Expand Down

0 comments on commit c2ac601

Please sign in to comment.