Small colab notebook fix.

This commit is contained in:
comfyanonymous 2023-01-27 21:54:46 -05:00
parent 266db2066d
commit d8af790fa6
1 changed files with 4 additions and 2 deletions

View File

@ -106,8 +106,10 @@
" break\n",
" sock.close()\n",
" from google.colab import output\n",
" x = output.serve_kernel_port_as_window(port)\n",
" x = output.serve_kernel_port_as_iframe(port, height=1024)\n",
" output.serve_kernel_port_as_iframe(port, height=1024)\n",
" print(\"to open it in a window you can open this link here:\")\n",
" output.serve_kernel_port_as_window(port)\n",
"\n",
"threading.Thread(target=iframe_thread, daemon=True, args=(8188,)).start()\n",
"\n",
"!python main.py"