Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# FastAI Model
|
2 |
+
|
3 |
+
This model was trained using FastAI and deployed to Hugging Face.
|
4 |
+
|
5 |
+
## Usage
|
6 |
+
|
7 |
+
```python
|
8 |
+
from fastai.learner import load_learner
|
9 |
+
from huggingface_hub import hf_hub_download
|
10 |
+
|
11 |
+
# Download the model
|
12 |
+
model_path = hf_hub_download(repo_id="RamyKhorshed/Lesson2FastAi", filename="model.pkl")
|
13 |
+
model = load_learner(model_path)
|
14 |
+
|
15 |
+
# Make predictions
|
16 |
+
# prediction = model.predict(your_input)
|
17 |
+
```
|