This commit is contained in:
Rafa 2023-08-10 08:46:16 -03:00 committed by GitHub
parent 183b109844
commit a9dcefc772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,15 +126,12 @@
"# @title **[4]** Start Server\n",
"# @markdown **Run this cell AFTER ngrok setup!**\\\n",
"# @markdown This cell will start the server, the first time that you run it will download the example models, so it can take a while and console may be spammed a little bit. **So be fast to open the server link.**\n",
"\n",
"# Make sure that we are in the server folder after Colab restarts.\n",
"\n",
"import portpicker\n",
"PORT = portpicker.pick_unused_port()\n",
"\n",
"from pyngrok import ngrok\n",
"public_url = ngrok.connect(PORT).public_url\n",
"#print(\" * ngrok tunnel \\\"{}\\\" -> \\\"http://127.0.0.1:{}/\\\"\".format(public_url, PORT))\n",
"\n",
"print(\"Your server will be available at:\")\n",
"print(public_url)\n",
"print(public_url)\n",
@ -177,4 +174,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}