Spaces:
Runtime error
Runtime error
Commit
·
4487feb
1
Parent(s):
0a6d9bf
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,12 @@
|
|
1 |
from huggingface_hub import hf_hub_download
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
# Download the model file
|
4 |
model_file = hf_hub_download(
|
5 |
repo_id="MichaelKonu/MoneyMike",
|
|
|
1 |
from huggingface_hub import hf_hub_download
|
2 |
|
3 |
+
from fastai.learner import load_learner
|
4 |
+
|
5 |
+
# Function to load model
|
6 |
+
def load_model(model_path):
|
7 |
+
learn = load_learner(model_path)
|
8 |
+
return learn
|
9 |
+
|
10 |
# Download the model file
|
11 |
model_file = hf_hub_download(
|
12 |
repo_id="MichaelKonu/MoneyMike",
|