fastai2 / README.md
Choucri FAHED
update doc
51badb6
---
title: Fastai2
emoji: 🦀
colorFrom: indigo
colorTo: green
sdk: gradio
sdk_version: 3.1.4
app_file: app.py
pinned: false
license: apache-2.0
---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
# Train and download the model
Before generating and downloading the model, make sure to launch `git lfs install`.
The notebook that generated the model pickle file `model.pkl` is
[here](https://www.kaggle.com/code/cfahed/saving-a-basic-fastai-model/edit).
# Setup a fully working Fastai environment on Mac
Install [Mamba](https://mamba.readthedocs.io/en/latest/installation.html) which is a faster Conda.
And both are preferred to _pip_ because _pip_ doesn't install GPU dependencies.
Then, run the following commands:
mamba init
mamba install -c fastchan fastai
mamba install -c fastai nbdev
mamba install jupyter
pip install gradio
Finally, launch Jupyter with `jupyter notebook`.
The app is deployed [here](https://huggingface.co/spaces/choucrifahed/fastai2).