3v324v23 commited on
Commit
681358d
·
1 Parent(s): b2cd548

Actualiza .gitignore y deja de rastrear ciertos archivos

Browse files
.gitignore CHANGED
@@ -1,3 +1,4 @@
1
  .history
2
  .history/
3
  login.html.old
 
 
1
  .history
2
  .history/
3
  login.html.old
4
+ *.log
.history/.rclone_20240520144604.conf DELETED
@@ -1 +0,0 @@
1
- ## EMPTY
 
 
.history/.rclone_20240520144927.conf DELETED
@@ -1 +0,0 @@
1
- ## EMPTY
 
 
.history/Dockerfile_20240520012211 DELETED
@@ -1,101 +0,0 @@
1
- FROM nvidia/cuda:11.3.1-base-ubuntu20.04
2
-
3
- ENV DEBIAN_FRONTEND=noninteractive \
4
- TZ=Europe/Paris
5
-
6
- # Remove any third-party apt sources to avoid issues with expiring keys.
7
- # Install some basic utilities
8
- RUN rm -f /etc/apt/sources.list.d/*.list && \
9
- apt-get update && apt-get install -y --no-install-recommends \
10
- curl \
11
- ca-certificates \
12
- sudo \
13
- git \
14
- git-lfs \
15
- zip \
16
- unzip \
17
- htop \
18
- bzip2 \
19
- libx11-6 \
20
- build-essential \
21
- libsndfile-dev \
22
- software-properties-common \
23
- && rm -rf /var/lib/apt/lists/*
24
-
25
- RUN add-apt-repository ppa:flexiondotorg/nvtop && \
26
- apt-get upgrade -y && \
27
- apt-get install -y --no-install-recommends nvtop
28
-
29
- RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
30
- apt-get install -y nodejs && \
31
- npm install -g configurable-http-proxy
32
-
33
- # Create a working directory
34
- WORKDIR /app
35
-
36
- # Create a non-root user and switch to it
37
- RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
38
- && chown -R user:user /app
39
- RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
40
- USER user
41
-
42
- # All users can use /home/user as their home directory
43
- ENV HOME=/home/user
44
- RUN mkdir $HOME/.cache $HOME/.config \
45
- && chmod -R 777 $HOME
46
-
47
- # Set up the Conda environment
48
- ENV CONDA_AUTO_UPDATE_CONDA=false \
49
- PATH=$HOME/miniconda/bin:$PATH
50
- RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39_4.10.3-Linux-x86_64.sh \
51
- && chmod +x ~/miniconda.sh \
52
- && ~/miniconda.sh -b -p ~/miniconda \
53
- && rm ~/miniconda.sh \
54
- && conda clean -ya
55
-
56
- WORKDIR $HOME/app
57
-
58
- #######################################
59
- # Start root user section
60
- #######################################
61
-
62
- USER root
63
-
64
- # User Debian packages
65
- ## Security warning : Potential user code executed as root (build time)
66
- RUN --mount=target=/root/packages.txt,source=packages.txt \
67
- apt-get update && \
68
- xargs -r -a /root/packages.txt apt-get install -y --no-install-recommends \
69
- && rm -rf /var/lib/apt/lists/*
70
-
71
- RUN --mount=target=/root/on_startup.sh,source=on_startup.sh,readwrite \
72
- bash /root/on_startup.sh
73
-
74
- RUN mkdir /data && chown user:user /data
75
-
76
- #######################################
77
- # End root user section
78
- #######################################
79
-
80
- USER user
81
-
82
- # Python packages
83
- RUN --mount=target=requirements.txt,source=requirements.txt \
84
- pip install --no-cache-dir --upgrade -r requirements.txt
85
-
86
- # Copy the current directory contents into the container at $HOME/app setting the owner to the user
87
- COPY --chown=user . $HOME/app
88
-
89
- RUN chmod +x start_server.sh
90
-
91
- COPY --chown=user login.html /home/user/miniconda/lib/python3.9/site-packages/jupyter_server/templates/login.html
92
-
93
- ENV PYTHONUNBUFFERED=1 \
94
- GRADIO_ALLOW_FLAGGING=never \
95
- GRADIO_NUM_PORTS=1 \
96
- GRADIO_SERVER_NAME=0.0.0.0 \
97
- GRADIO_THEME=huggingface \
98
- SYSTEM=spaces \
99
- SHELL=/bin/bash
100
-
101
- CMD ["./start_server.sh"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240520142534 DELETED
@@ -1,101 +0,0 @@
1
- FROM nvidia/cuda:11.3.1-base-ubuntu20.04
2
-
3
- ENV DEBIAN_FRONTEND=noninteractive TZ=Europe/Paris
4
-
5
- # Remove any third-party apt sources to avoid issues with expiring keys.
6
- # Install some basic utilities
7
- RUN rm -f /etc/apt/sources.list.d/*.list && \
8
- apt-get update && apt-get install -y --no-install-recommends \
9
- curl \
10
- ca-certificates \
11
- sudo \
12
- git \
13
- git-lfs \
14
- zip \
15
- unzip \
16
- htop \
17
- bzip2 \
18
- libx11-6 \
19
- build-essential \
20
- libsndfile-dev \
21
- software-properties-common \
22
- openssh-server \
23
- && rm -rf /var/lib/apt/lists/*
24
-
25
- RUN add-apt-repository ppa:flexiondotorg/nvtop && \
26
- apt-get upgrade -y && \
27
- apt-get install -y --no-install-recommends nvtop
28
-
29
- RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
30
- apt-get install -y nodejs && \
31
- npm install -g configurable-http-proxy
32
-
33
- # Create a working directory
34
- WORKDIR /app
35
-
36
- # Create a non-root user and switch to it
37
- RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
38
- && chown -R user:user /app
39
- RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
40
- USER user
41
-
42
- # All users can use /home/user as their home directory
43
- ENV HOME=/home/user
44
- RUN mkdir $HOME/.cache $HOME/.config \
45
- && chmod -R 777 $HOME
46
-
47
- # Set up the Conda environment
48
- ENV CONDA_AUTO_UPDATE_CONDA=false \
49
- PATH=$HOME/miniconda/bin:$PATH
50
- RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39_4.10.3-Linux-x86_64.sh \
51
- && chmod +x ~/miniconda.sh \
52
- && ~/miniconda.sh -b -p ~/miniconda \
53
- && rm ~/miniconda.sh \
54
- && conda clean -ya
55
-
56
- WORKDIR $HOME/app
57
-
58
- #######################################
59
- # Start root user section
60
- #######################################
61
-
62
- USER root
63
-
64
- # User Debian packages
65
- ## Security warning : Potential user code executed as root (build time)
66
- RUN --mount=target=/root/packages.txt,source=packages.txt \
67
- apt-get update && \
68
- xargs -r -a /root/packages.txt apt-get install -y --no-install-recommends \
69
- && rm -rf /var/lib/apt/lists/*
70
-
71
- RUN --mount=target=/root/on_startup.sh,source=on_startup.sh,readwrite \
72
- bash /root/on_startup.sh
73
-
74
- RUN mkdir /data && chown user:user /data
75
-
76
- #######################################
77
- # End root user section
78
- #######################################
79
-
80
- USER user
81
-
82
- # Python packages
83
- RUN --mount=target=requirements.txt,source=requirements.txt \
84
- pip install --no-cache-dir --upgrade -r requirements.txt
85
-
86
- # Copy the current directory contents into the container at $HOME/app setting the owner to the user
87
- COPY --chown=user . $HOME/app
88
-
89
- RUN chmod +x start_server.sh
90
-
91
- COPY --chown=user login.html /home/user/miniconda/lib/python3.9/site-packages/jupyter_server/templates/login.html
92
-
93
- ENV PYTHONUNBUFFERED=1 \
94
- GRADIO_ALLOW_FLAGGING=never \
95
- GRADIO_NUM_PORTS=1 \
96
- GRADIO_SERVER_NAME=0.0.0.0 \
97
- GRADIO_THEME=huggingface \
98
- SYSTEM=spaces \
99
- SHELL=/bin/bash
100
-
101
- CMD ["./start_server.sh"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240520143349 DELETED
@@ -1,109 +0,0 @@
1
- FROM nvidia/cuda:11.3.1-base-ubuntu20.04
2
-
3
- ENV DEBIAN_FRONTEND=noninteractive TZ=Europe/Paris
4
-
5
- # Remove any third-party apt sources to avoid issues with expiring keys.
6
- # Install some basic utilities
7
- RUN rm -f /etc/apt/sources.list.d/*.list && \
8
- apt-get update && apt-get install -y --no-install-recommends \
9
- curl \
10
- ca-certificates \
11
- sudo \
12
- git \
13
- git-lfs \
14
- zip \
15
- unzip \
16
- htop \
17
- bzip2 \
18
- libx11-6 \
19
- build-essential \
20
- libsndfile-dev \
21
- software-properties-common \
22
- openssh-server \
23
- && rm -rf /var/lib/apt/lists/*
24
-
25
- RUN add-apt-repository ppa:flexiondotorg/nvtop && \
26
- apt-get upgrade -y && \
27
- apt-get install -y --no-install-recommends nvtop
28
-
29
- RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
30
- apt-get install -y nodejs && \
31
- npm install -g configurable-http-proxy
32
-
33
- # Create a working directory
34
- WORKDIR /app
35
-
36
- # Create a non-root user and switch to it
37
- RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
38
- && chown -R user:user /app
39
- RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
40
-
41
- # Enable sudo for user
42
- RUN chmod 4755 /usr/bin/sudo
43
-
44
- USER user
45
-
46
- # All users can use /home/user as their home directory
47
- ENV HOME=/home/user
48
- RUN mkdir $HOME/.cache $HOME/.config \
49
- && chmod -R 777 $HOME
50
-
51
- # Set up the Conda environment
52
- ENV CONDA_AUTO_UPDATE_CONDA=false \
53
- PATH=$HOME/miniconda/bin:$PATH
54
- RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39_4.10.3-Linux-x86_64.sh \
55
- && chmod +x ~/miniconda.sh \
56
- && ~/miniconda.sh -b -p ~/miniconda \
57
- && rm ~/miniconda.sh \
58
- && conda clean -ya
59
-
60
- WORKDIR $HOME/app
61
-
62
- #######################################
63
- # Start root user section
64
- #######################################
65
-
66
- USER root
67
-
68
- # User Debian packages
69
- ## Security warning : Potential user code executed as root (build time)
70
- RUN --mount=target=/root/packages.txt,source=packages.txt \
71
- apt-get update && \
72
- xargs -r -a /root/packages.txt apt-get install -y --no-install-recommends \
73
- && rm -rf /var/lib/apt/lists/*
74
-
75
- RUN --mount=target=/root/on_startup.sh,source=on_startup.sh,readwrite \
76
- bash /root/on_startup.sh
77
-
78
- RUN mkdir /data && chown user:user /data
79
-
80
- #######################################
81
- # End root user section
82
- #######################################
83
-
84
- USER user
85
-
86
- # Python packages
87
- RUN --mount=target=requirements.txt,source=requirements.txt \
88
- pip install --no-cache-dir --upgrade -r requirements.txt
89
-
90
- # Copy the current directory contents into the container at $HOME/app setting the owner to the user
91
- COPY --chown=user . $HOME/app
92
-
93
- RUN chmod +x start_server.sh
94
-
95
- COPY --chown=user login.html /home/user/miniconda/lib/python3.9/site-packages/jupyter_server/templates/login.html
96
-
97
- # Set dark theme for JupyterLab
98
- RUN mkdir -p $HOME/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/ && \
99
- echo '{ "theme": "JupyterLab Dark" }' > $HOME/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/themes.jupyterlab-settings
100
-
101
- ENV PYTHONUNBUFFERED=1 \
102
- GRADIO_ALLOW_FLAGGING=never \
103
- GRADIO_NUM_PORTS=1 \
104
- GRADIO_SERVER_NAME=0.0.0.0 \
105
- GRADIO_THEME=huggingface \
106
- SYSTEM=spaces \
107
- SHELL=/bin/bash
108
-
109
- CMD ["./start_server.sh"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240520143908 DELETED
@@ -1,71 +0,0 @@
1
- FROM nvidia/cuda:11.3.1-base-ubuntu20.04
2
-
3
- ENV DEBIAN_FRONTEND=noninteractive TZ=Europe/Paris
4
-
5
- # Remove any third-party apt sources to avoid issues with expiring keys.
6
- # Install some basic utilities
7
- RUN rm -f /etc/apt/sources.list.d/*.list && \
8
- apt-get update && apt-get install -y --no-install-recommends \
9
- curl \
10
- ca-certificates \
11
- sudo \
12
- git \
13
- git-lfs \
14
- zip \
15
- unzip \
16
- htop \
17
- bzip2 \
18
- libx11-6 \
19
- build-essential \
20
- libsndfile-dev \
21
- software-properties-common \
22
- openssh-server \
23
- fuse \
24
- && rm -rf /var/lib/apt/lists/*
25
-
26
- # Install rclone
27
- RUN curl https://rclone.org/install.sh | bash
28
-
29
- RUN add-apt-repository ppa:flexiondotorg/nvtop && \
30
- apt-get upgrade -y && \
31
- apt-get install -y --no-install-recommends nvtop
32
-
33
- RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
34
- apt-get install -y nodejs && \
35
- npm install -g configurable-http-proxy
36
-
37
- # Set up the Conda environment
38
- ENV CONDA_AUTO_UPDATE_CONDA=false \
39
- PATH=/root/miniconda/bin:$PATH
40
- RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39_4.10.3-Linux-x86_64.sh \
41
- && chmod +x ~/miniconda.sh \
42
- && ~/miniconda.sh -b -p /root/miniconda \
43
- && rm ~/miniconda.sh \
44
- && conda clean -ya
45
-
46
- WORKDIR /root/app
47
-
48
- # Python packages
49
- RUN --mount=target=requirements.txt,source=requirements.txt \
50
- pip install --no-cache-dir --upgrade -r requirements.txt
51
-
52
- # Copy the current directory contents into the container at /root/app
53
- COPY . /root/app
54
-
55
- RUN chmod +x start_server.sh
56
-
57
- COPY login.html /root/miniconda/lib/python3.9/site-packages/jupyter_server/templates/login.html
58
-
59
- # Set dark theme for JupyterLab
60
- RUN mkdir -p /root/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/ && \
61
- echo '{ "theme": "JupyterLab Dark" }' > /root/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/themes.jupyterlab-settings
62
-
63
- ENV PYTHONUNBUFFERED=1 \
64
- GRADIO_ALLOW_FLAGGING=never \
65
- GRADIO_NUM_PORTS=1 \
66
- GRADIO_SERVER_NAME=0.0.0.0 \
67
- GRADIO_THEME=huggingface \
68
- SYSTEM=spaces \
69
- SHELL=/bin/bash
70
-
71
- CMD ["./start_server.sh"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240520144314 DELETED
@@ -1,71 +0,0 @@
1
- FROM nvidia/cuda:11.3.1-base-ubuntu20.04
2
-
3
- ENV DEBIAN_FRONTEND=noninteractive TZ=Europe/Paris
4
-
5
- # Remove any third-party apt sources to avoid issues with expiring keys.
6
- # Install some basic utilities
7
- RUN rm -f /etc/apt/sources.list.d/*.list && \
8
- apt-get update && apt-get install -y --no-install-recommends \
9
- curl \
10
- ca-certificates \
11
- sudo \
12
- git \
13
- git-lfs \
14
- zip \
15
- unzip \
16
- htop \
17
- bzip2 \
18
- libx11-6 \
19
- build-essential \
20
- libsndfile-dev \
21
- software-properties-common \
22
- openssh-server \
23
- fuse \
24
- && rm -rf /var/lib/apt/lists/*
25
-
26
- # Install rclone
27
- RUN curl https://rclone.org/install.sh | bash
28
-
29
- RUN add-apt-repository ppa:flexiondotorg/nvtop && \
30
- apt-get upgrade -y && \
31
- apt-get install -y --no-install-recommends nvtop
32
-
33
- RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
34
- apt-get install -y nodejs && \
35
- npm install -g configurable-http-proxy
36
-
37
- # Set up the Conda environment
38
- ENV CONDA_AUTO_UPDATE_CONDA=false \
39
- PATH=/root/miniconda/bin:$PATH
40
- RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39_4.10.3-Linux-x86_64.sh \
41
- && chmod +x ~/miniconda.sh \
42
- && ~/miniconda.sh -b -p /root/miniconda \
43
- && rm ~/miniconda.sh \
44
- && conda clean -ya
45
-
46
- WORKDIR /root/app
47
-
48
- # Python packages
49
- RUN --mount=target=requirements.txt,source=requirements.txt \
50
- pip install --no-cache-dir --upgrade -r requirements.txt
51
-
52
- # Copy the current directory contents into the container at /root/app
53
- COPY . /root/app
54
-
55
- RUN chmod +x start_server.sh
56
-
57
- COPY login.html /root/miniconda/lib/python3.9/site-packages/jupyter_server/templates/login.html
58
-
59
- # Set dark theme for JupyterLab
60
- RUN mkdir -p /root/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/ && \
61
- echo '{ "theme": "JupyterLab Dark" }' > /root/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/themes.jupyterlab-settings
62
-
63
- ENV PYTHONUNBUFFERED=1 \
64
- GRADIO_ALLOW_FLAGGING=never \
65
- GRADIO_NUM_PORTS=1 \
66
- GRADIO_SERVER_NAME=0.0.0.0 \
67
- GRADIO_THEME=huggingface \
68
- SYSTEM=spaces \
69
- SHELL=/bin/bash
70
-
71
- CMD ["./start_server.sh"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240520144550 DELETED
@@ -1,75 +0,0 @@
1
- FROM nvidia/cuda:11.3.1-base-ubuntu20.04
2
-
3
- ENV DEBIAN_FRONTEND=noninteractive TZ=Europe/Paris
4
-
5
- # Remove any third-party apt sources to avoid issues with expiring keys.
6
- # Install some basic utilities
7
- RUN rm -f /etc/apt/sources.list.d/*.list && \
8
- apt-get update && apt-get install -y --no-install-recommends \
9
- curl \
10
- ca-certificates \
11
- sudo \
12
- git \
13
- git-lfs \
14
- zip \
15
- unzip \
16
- htop \
17
- bzip2 \
18
- libx11-6 \
19
- build-essential \
20
- libsndfile-dev \
21
- software-properties-common \
22
- openssh-server \
23
- fuse \
24
- && rm -rf /var/lib/apt/lists/*
25
-
26
- # Install rclone
27
- RUN curl https://rclone.org/install.sh | bash
28
-
29
- RUN add-apt-repository ppa:flexiondotorg/nvtop && \
30
- apt-get upgrade -y && \
31
- apt-get install -y --no-install-recommends nvtop
32
-
33
- # Install Node.js 18 LTS
34
- RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - && \
35
- apt-get install -y nodejs && \
36
- npm install -g configurable-http-proxy
37
-
38
- # Set up the Conda environment
39
- ENV CONDA_AUTO_UPDATE_CONDA=false \
40
- PATH=/root/miniconda/bin:$PATH
41
- RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39_4.10.3-Linux-x86_64.sh \
42
- && chmod +x ~/miniconda.sh \
43
- && ~/miniconda.sh -b -p /root/miniconda \
44
- && rm ~/miniconda.sh \
45
- && conda clean -ya
46
-
47
- WORKDIR /root/app
48
-
49
- # Python packages
50
- RUN --mount=target=requirements.txt,source=requirements.txt \
51
- pip install --no-cache-dir --upgrade -r requirements.txt
52
-
53
- # Copy the current directory contents into the container at /root/app
54
- COPY . /root/app
55
-
56
- # Copy rclone configuration
57
- COPY rclone.conf /root/.config/rclone/rclone.conf
58
-
59
- RUN chmod +x start_server.sh
60
-
61
- COPY login.html /root/miniconda/lib/python3.9/site-packages/jupyter_server/templates/login.html
62
-
63
- # Set dark theme for JupyterLab
64
- RUN mkdir -p /root/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/ && \
65
- echo '{ "theme": "JupyterLab Dark" }' > /root/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/themes.jupyterlab-settings
66
-
67
- ENV PYTHONUNBUFFERED=1 \
68
- GRADIO_ALLOW_FLAGGING=never \
69
- GRADIO_NUM_PORTS=1 \
70
- GRADIO_SERVER_NAME=0.0.0.0 \
71
- GRADIO_THEME=huggingface \
72
- SYSTEM=spaces \
73
- SHELL=/bin/bash
74
-
75
- CMD ["./start_server.sh"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/login_20240520141119.html DELETED
File without changes
.history/login_20240520141122.html DELETED
@@ -1,61 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Login</title>
7
- <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
8
- <style>
9
- body {
10
- background-color: #121212;
11
- color: #ffffff;
12
- display: flex;
13
- justify-content: center;
14
- align-items: center;
15
- height: 100vh;
16
- margin: 0;
17
- }
18
- .login-container {
19
- background-color: #1e1e1e;
20
- padding: 2rem;
21
- border-radius: 8px;
22
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
23
- }
24
- .form-control {
25
- background-color: #2b2b2b;
26
- color: #ffffff;
27
- border: 1px solid #444444;
28
- }
29
- .btn-primary {
30
- background-color: #3a3a3a;
31
- border: none;
32
- }
33
- .btn-primary:hover {
34
- background-color: #575757;
35
- }
36
- </style>
37
- </head>
38
- <body>
39
- <div class="login-container">
40
- <h3 class="text-center">Login</h3>
41
- <form action="{{base_url}}login?next={{next}}" method="post">
42
- {{ xsrf_form_html() | safe }}
43
- {% if token_available %}
44
- <div class="form-group">
45
- <label for="password_input"><strong>Token:</strong></label>
46
- <input type="password" name="password" id="password_input" class="form-control" required>
47
- </div>
48
- {% else %}
49
- <div class="form-group">
50
- <label for="password_input"><strong>Password:</strong></label>
51
- <input type="password" name="password" id="password_input" class="form-control" required>
52
- </div>
53
- {% endif %}
54
- <button type="submit" class="btn btn-primary btn-block">Log in</button>
55
- </form>
56
- </div>
57
- <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
58
- <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
59
- <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
60
- </body>
61
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/rclone_20240520144558.conf DELETED
File without changes
.history/rclone_20240520144605.conf DELETED
@@ -1 +0,0 @@
1
- ## EMPTY
 
 
.history/start_server_20240520012211.sh DELETED
@@ -1,19 +0,0 @@
1
- #!/bin/bash
2
- JUPYTER_TOKEN="${JUPYTER_TOKEN:=huggingface}"
3
-
4
- echo "Starting Jupyter Lab with token $JUPYTER_TOKEN"
5
-
6
- NOTEBOOK_DIR="/data"
7
-
8
- jupyter-lab \
9
- --ip 0.0.0.0 \
10
- --port 7860 \
11
- --no-browser \
12
- --allow-root \
13
- --ServerApp.token="$JUPYTER_TOKEN" \
14
- --ServerApp.tornado_settings="{'headers': {'Content-Security-Policy': 'frame-ancestors *'}}" \
15
- --ServerApp.cookie_options="{'SameSite': 'None', 'Secure': True}" \
16
- --ServerApp.disable_check_xsrf=True \
17
- --LabApp.news_url=None \
18
- --LabApp.check_for_updates_class="jupyterlab.NeverCheckForUpdate" \
19
- --notebook-dir=$NOTEBOOK_DIR
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/start_server_20240520143920.sh DELETED
@@ -1,22 +0,0 @@
1
- #!/bin/bash
2
- JUPYTER_TOKEN="${JUPYTER_TOKEN:=huggingface}"
3
-
4
- echo "Starting Jupyter Lab with token $JUPYTER_TOKEN"
5
-
6
- NOTEBOOK_DIR="/data"
7
-
8
- # Mount Google Drive
9
- rclone mount gdrive: /root/GoogleDrive --daemon
10
-
11
- jupyter-lab \
12
- --ip 0.0.0.0 \
13
- --port 7860 \
14
- --no-browser \
15
- --allow-root \
16
- --ServerApp.token="$JUPYTER_TOKEN" \
17
- --ServerApp.tornado_settings="{'headers': {'Content-Security-Policy': 'frame-ancestors *'}}" \
18
- --ServerApp.cookie_options="{'SameSite': 'None', 'Secure': True}" \
19
- --ServerApp.disable_check_xsrf=True \
20
- --LabApp.news_url=None \
21
- --LabApp.check_for_updates_class="jupyterlab.NeverCheckForUpdate" \
22
- --notebook-dir=$NOTEBOOK_DIR
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/start_server_20240520144328.sh DELETED
@@ -1,22 +0,0 @@
1
- #!/bin/bash
2
- JUPYTER_TOKEN="${JUPYTER_TOKEN:=huggingface}"
3
-
4
- echo "Starting Jupyter Lab with token $JUPYTER_TOKEN"
5
-
6
- NOTEBOOK_DIR="/data"
7
-
8
- # Mount Google Drive
9
- rclone mount gdrive: /root/GoogleDrive --daemon
10
-
11
- jupyter-lab \
12
- --ip 0.0.0.0 \
13
- --port 7860 \
14
- --no-browser \
15
- --allow-root \
16
- --ServerApp.token="$JUPYTER_TOKEN" \
17
- --ServerApp.tornado_settings="{'headers': {'Content-Security-Policy': 'frame-ancestors *'}}" \
18
- --ServerApp.cookie_options="{'SameSite': 'None', 'Secure': True}" \
19
- --ServerApp.disable_check_xsrf=True \
20
- --LabApp.news_url=None \
21
- --LabApp.check_for_updates_class="jupyterlab.NeverCheckForUpdate" \
22
- --notebook-dir=$NOTEBOOK_DIR
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
login.html.old DELETED
@@ -1,69 +0,0 @@
1
- {% extends "page.html" %}
2
-
3
-
4
- {% block stylesheet %}
5
- {% endblock %}
6
-
7
- {% block site %}
8
-
9
- <div id="jupyter-main-app" class="container">
10
-
11
- <img src="https://huggingface.co/front/assets/huggingface_logo-noborder.svg" alt="Hugging Face Logo">
12
- <h4>You can duplicate this Space to run it private.</h4>
13
- <br>
14
- <a class="duplicate-button" style="display:inline-block" target="_blank" href="https://huggingface.co/spaces/DockerTemplates/jupyterlab?duplicate=true">
15
- <img style="margin: 0" src="https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&amp;style=flat&amp;logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&amp;logoWidth=14" alt="Duplicate Space"></a>
16
- <br>
17
- <br>
18
- <h4>The default token is <span style="color:orange;">huggingface</span></h4>
19
- <h4>Duplicate the Space to run your own instance</h4>
20
-
21
- {% if login_available %}
22
- {# login_available means password-login is allowed. Show the form. #}
23
- <div class="row">
24
- <div class="navbar col-sm-8">
25
- <div class="navbar-inner">
26
- <div class="container">
27
- <div class="center-nav">
28
- <form action="{{base_url}}login?next={{next}}" method="post" class="navbar-form pull-left">
29
- {{ xsrf_form_html() | safe }}
30
- {% if token_available %}
31
- <label for="password_input"><strong>{% trans %}Token:{% endtrans
32
- %}</strong></label>
33
- {% else %}
34
- <label for="password_input"><strong>{% trans %}Password:{% endtrans %}</strong></label>
35
- {% endif %}
36
- <input type="password" name="password" id="password_input" class="form-control">
37
- <button type="submit" class="btn btn-default" id="login_submit">{% trans %}Log in{% endtrans
38
- %}</button>
39
- </form>
40
- </div>
41
- </div>
42
- </div>
43
- </div>
44
- </div>
45
- {% else %}
46
- <p>{% trans %}No login available, you shouldn't be seeing this page.{% endtrans %}</p>
47
- {% endif %}
48
- <p>This template was created by <a href="https://twitter.com/camenduru" target="_blank" >camenduru</a> and <a href="https://huggingface.co/nateraw" target="_blank" >nateraw</a>, with contributions of <a href="https://huggingface.co/osanseviero" target="_blank" >osanseviero</a> and <a href="https://huggingface.co/azzr" target="_blank" >azzr</a> </p>
49
- {% if message %}
50
- <div class="row">
51
- {% for key in message %}
52
- <div class="message {{key}}">
53
- {{message[key]}}
54
- </div>
55
- {% endfor %}
56
- </div>
57
- {% endif %}
58
- {% if token_available %}
59
- {% block token_message %}
60
-
61
- {% endblock token_message %}
62
- {% endif %}
63
- </div>
64
-
65
- {% endblock %}
66
-
67
-
68
- {% block script %}
69
- {% endblock %}