Last active
November 14, 2022 18:16
-
-
Save hamelsmu/35be07d242f3f19063c3a3839127dc67 to your computer and use it in GitHub Desktop.
A demo of creating a gradio app with nbdev
Thanks, CLI was a fallback, the method in your blog post runs in 0.3 secs, but no app.py in the folder (or nowhere else). Relative or absolute paths like lib_path='/Users/cer/vc/projects/hfds-size/'
did not matter. Can't really figure out why it fails. In any case, thanks for the idea and blog post.
from nbdev.export import nb_export
nb_export('app.ipynb', lib_path='.', name='app')
the method in your blog post runs in 0.3 secs, but no app.py in the folder
It's hard to debug this way, if you would like to provide a minimally reproducible example it might be easier. The code in a repo format is on HFhub incase that helps. https://huggingface.co/spaces/hamel/hfspace_demo/tree/main
It helped!!!
When I downloaded the raw notebook from the gist, somehow the export decorators were damaged under my edits.
I think I managed to change one “|” to “!”. My bad. Now I downloaded app.ipynb directly from https://huggingface.co/spaces/hamel/hfspace_demo/tree/main and it worked
Seems to be also working with conda or pip versions 2.3.9. Thanks so much, I’ll now clean up and rewrite my app.
… On 14 Nov 2022, at 18.38, Hamel Husain ***@***.***> wrote:
Re: hamelsmu/app.ipynb
@hamelsmu commented on this gist.the method in your blog post runs in 0.3 secs, but no app.py in the folder
It's hard to debug this way, if you would like to provide a minimally reproducible example it might be easier. The code in a repo format is on HFhub incase that helps. https://huggingface.co/spaces/hamel/hfspace_demo/tree/main
—
Reply to this email directly, view it on GitHub or unsubscribe.
You are receiving this email because you commented on a thread.
Triage notifications on the go with GitHub Mobile for iOS or Android.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Per the blog post, install from github
pip install git+https://github.com/fastai/nbdev.git