Spaces:
Running
Running
José Valim commited on
Commit ·
2f0122e
1
Parent(s): 6df0ed8
Add LIVEBOOK_APPS_PATH
Browse filesFiles changed (3)
- Dockerfile+2-1
- public/.gitkeepAdded
- public/welcome.livemdAdded+46
3 unmodified lines45678910111213143 unmodified linesENV 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_DATA_PATH "/data"ENV LIVEBOOK_PORT 7860EXPOSE 7860USER rootRUN mkdir -p /dataRUN chmod 777 /data3 unmodified lines4567891011121314153 unmodified linesENV 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"ENV LIVEBOOK_DATA_PATH "/data"ENV LIVEBOOK_PORT 7860EXPOSE 7860USER rootCOPY public/ /publicRUN mkdir -p /dataRUN chmod 777 /data
12345678910111213141516171819202122232425262728293031323334353637383940414243444546<!-- livebook:{"app_settings":{"access_type":"public","slug":"welcome"}} -->
# Livebook <3 Hugging Face
```elixirMix.install([ {:kino, "~> 0.9"}])```
## 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" 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" directory of your Spaces repo.""")```Dockerfile+2-1
public/.gitkeepAdded
public/welcome.livemdAdded+46