Spaces:
Runtime error
Runtime error
File size: 2,531 Bytes
d68ec80 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"colab_type": "text",
"id": "view-in-github"
},
"source": [
"<a href=\"https://colab.research.google.com/github/RubenGres/Drawing2Map-hfspace/blob/main/Launch_interface.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "hsn_87UXrUn5"
},
"outputs": [],
"source": [
"!git clone https://github.com/RubenGres/Drawing2Map-hfspace.git\n",
"%cd Drawing2Map-hfspace/ui"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "uVUasUqwr_Br"
},
"outputs": [],
"source": [
"!pip install -r requirements.txt\n",
"!npm install -g localtunnel"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "9OIMlcM9OQWk"
},
"outputs": [],
"source": [
"!export URL_GRADIO='http://localhost:7860'"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "yhLLdro5s-rf"
},
"outputs": [],
"source": [
"!echo \" \"\n",
"!echo \"Click the next link and when prompted enter:\"\n",
"!curl ipv4.icanhazip.com\n",
"!echo \" \"\n",
"!lt --port 8000 & make run-prod"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "G2USPEr_4YOm",
"outputId": "36de5b2b-0cf7-410b-a225-2869138e5523"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"killall python\n",
"python: no process found\n",
"make: *** [Makefile:20: stop-server] Error 1\n"
]
}
],
"source": [
"!make stop-server"
]
}
],
"metadata": {
"accelerator": "GPU",
"colab": {
"include_colab_link": true,
"provenance": []
},
"gpuClass": "standard",
"kernelspec": {
"display_name": "Python 3",
"name": "python3"
},
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
|