Spaces:
Build error
Build error
Commit ·
e0d7fac
verified ·
0
Parent(s):
Duplicate from livebook-dev/livebook
Browse filesCo-authored-by: Alexandre de Souza <aleDsz@users.noreply.huggingface.co>
Files changed (5)
- .gitattributesAdded+34
- DockerfileAdded+24
- README.mdAdded+10
- public-apps/.gitkeepAdded
- public-apps/welcome.livemdAdded+46
12345678910111213141516171819202122232425262728293031323334*.7z filter=lfs diff=lfs merge=lfs -text*.arrow filter=lfs diff=lfs merge=lfs -text*.bin filter=lfs diff=lfs merge=lfs -text*.bz2 filter=lfs diff=lfs merge=lfs -text*.ckpt filter=lfs diff=lfs merge=lfs -text*.ftz filter=lfs diff=lfs merge=lfs -text*.gz filter=lfs diff=lfs merge=lfs -text*.h5 filter=lfs diff=lfs merge=lfs -text*.joblib filter=lfs diff=lfs merge=lfs -text*.lfs.* filter=lfs diff=lfs merge=lfs -text*.mlmodel filter=lfs diff=lfs merge=lfs -text*.model filter=lfs diff=lfs merge=lfs -text*.msgpack filter=lfs diff=lfs merge=lfs -text*.npy filter=lfs diff=lfs merge=lfs -text*.npz filter=lfs diff=lfs merge=lfs -text*.onnx filter=lfs diff=lfs merge=lfs -text*.ot filter=lfs diff=lfs merge=lfs -text*.parquet filter=lfs diff=lfs merge=lfs -text*.pb filter=lfs diff=lfs merge=lfs -text*.pickle filter=lfs diff=lfs merge=lfs -text*.pkl filter=lfs diff=lfs merge=lfs -text*.pt filter=lfs diff=lfs merge=lfs -text*.pth filter=lfs diff=lfs merge=lfs -text*.rar filter=lfs diff=lfs merge=lfs -text*.safetensors filter=lfs diff=lfs merge=lfs -textsaved_model/**/* filter=lfs diff=lfs merge=lfs -text*.tar.* filter=lfs diff=lfs merge=lfs -text*.tflite filter=lfs diff=lfs merge=lfs -text*.tgz filter=lfs diff=lfs merge=lfs -text*.wasm filter=lfs diff=lfs merge=lfs -text*.xz filter=lfs diff=lfs merge=lfs -text*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text123456789101112131415161718192021222324FROM ghcr.io/livebook-dev/livebook:latest-cuda12
ENV LIVEBOOK_APP_SERVICE_NAME="🐳 Hugging Face - $SPACE_TITLE"ENV LIVEBOOK_APP_SERVICE_URL="https://huggingface.co/spaces/$SPACE_AUTHOR_NAME/$SPACE_REPO_NAME"ENV LIVEBOOK_UPDATE_INSTRUCTIONS_URL="https://livebook.dev"ENV LIVEBOOK_WITHIN_IFRAME="true"ENV LIVEBOOK_APPS_PATH="/public-apps"ENV LIVEBOOK_APPS_PATH_WARMUP="manual"ENV LIVEBOOK_DATA_PATH="/data"ENV LIVEBOOK_PORT="7860"
EXPOSE 7860
RUN mkdir -p /dataRUN chmod 777 /data
# The Space container runs with user ID 1000RUN useradd -m -u 1000 userENV HOME="/home/user"
USER user
COPY --chown=user public-apps/ /public-appsRUN /app/bin/warmup_apps12345678910---title: Livebookemoji: 📓colorFrom: pinkcolorTo: purplesdk: dockerfullWidth: true---
You can install and run [Livebook](https://livebook.dev/) inside a Hugging Face Space. Here's [a tutorial](https://huggingface.co/docs/hub/spaces-sdks-docker-livebook) on how to do that.12345678910111213141516171819202122232425262728293031323334353637383940414243444546<!-- livebook:{"app_settings":{"access_type":"public","output_type":"rich","slug":"welcome"}} -->
# Livebook <3 Hugging Face
```elixirMix.install([ {:kino, "~> 0.13"}])```
## Section
This is the source of a deployed notebook.This notebook is static and simply renders the markdown content below.
```elixirKino.Markdown.new("""Welcome to Livebook in Hugging Face!
This is a deployed notebook, which is also a perfect place to teach youthe ropes in using Livebook with Hugging Face.
## Getting started
First off, if you want to run your own copy of Livebook,[check our tutorial](https://news.livebook.dev/livebook-inside-hugging-face-spaces-3LQaRi).Once you clone the space, remember to set `LIVEBOOK_PASSWORD` asan environment variable on your Space Settings page (a minimum of12 digits is required).
If you are new to Elixir and Livebook, [head out to the Learn page](/learn)(it requires a password), there you will find resources to get startedwith both.
## Deploying notebooks
Livebook is fully collaborative and it enables you to deploy interactiveand collaborative apps just as well. All of your deployable notebooks willbe in the "public-apps" directory of your Spaces repository.
To deploy your own notebook on Hugging Face, you must click the<i class="ri-livebook-deploy"></i> icon on the notebook sidebar, set a "Slug"for the notebook, mark it as public and then drop its `.livemd` file intothe "public-apps" directory of your Spaces repo.""")```.gitattributesAdded+34
DockerfileAdded+24
README.mdAdded+10
public-apps/.gitkeepAdded
public-apps/welcome.livemdAdded+46