Skip to content

Commit 0f9fda1

Browse files
committed
add footnote for caption
1 parent 24c2f3e commit 0f9fda1

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

nbs/blog/posts/2022-11-07-spaces/index.qmd

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@ skip_exec: true
99
skip_showdoc: true
1010
---
1111

12+
:::{.hide}
13+
[^1]
14+
:::
15+
1216
![Image created with Stable Diffusion from [this space](https://huggingface.co/spaces/stabilityai/stable-diffusion)](blog_cover.jpeg)
1317

14-
[Hugging Face Spaces](https://huggingface.co/spaces/launch) provides an easy ways to deploy a web app with python. [Gradio](https://gradio.app/) is one of my favorite tools for building these web apps. Gradio also, allows you to prototype your web apps in notebooks which allow you to iterate fast. Unfortunately, Hugging Face Spaces requires you to package your web application code as a python script named `app.py`.
18+
19+
[Hugging Face Spaces](https://huggingface.co/spaces/launch) provides an easy ways to deploy a web app with python. [Gradio](https://gradio.app/) is one of my favorite tools for building these web apps. Gradio also, allows you to prototype your web apps in notebooks which allow you to iterate fast. Unfortunately, Hugging Face Spaces requires you to package your web application code as a python script named `app.py`.
1520

1621
However, **thanks to [nbdev](https://nbdev.fast.ai), you can deploy a Gradio app to Spaces from a notebook without having to refactor your code into a script!** When you finish this tutorial, you will have an app that looks like this:
1722

@@ -201,3 +206,5 @@ After a couple of minutes, you will see your app published! This app is publish
201206

202207
Hopefully you felt something magical while doing this example. Even though the target application required you to write a python script (`app.py`), you didn't have to refactor your script from a notebook! I believe that you shouldn't have to refactor your code and switch contexts even when creating python packages! If this intrigues you, check out [nbdev](https://nbdev.fast.ai/blog/posts/2022-07-28-nbdev2/)
203208

209+
210+
[^1]: The prompt that generated the cover image is: "A data scientist at a computer in a futuristic city with a view of the planet Jupyter in the night sky, trending on artstation, high detail, science-fiction"

nbs/styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,7 @@ blockquote > pre {
5555
font-size: 75%;
5656
font-style: italic;
5757
}
58+
59+
.hide {
60+
display:none;
61+
}

0 commit comments

Comments
 (0)