Spaces:
Sleeping
Sleeping
Jambulat Soltomuradow commited on
Commit ·
e44a7bb
1
Parent(s): 9dc6159
fix 3
Browse files- app.py +1 -0
- requirements.txt +3 -3
app.py
CHANGED
|
@@ -6,6 +6,7 @@ os.environ["MKL_NUM_THREADS"] = "1"
|
|
| 6 |
|
| 7 |
|
| 8 |
learn = load_learner('model.pkl', cpu=True)
|
|
|
|
| 9 |
|
| 10 |
categories = ('damaged', 'intact')
|
| 11 |
|
|
|
|
| 6 |
|
| 7 |
|
| 8 |
learn = load_learner('model.pkl', cpu=True)
|
| 9 |
+
learn.model.eval()
|
| 10 |
|
| 11 |
categories = ('damaged', 'intact')
|
| 12 |
|
requirements.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
fastai
|
| 2 |
-
torch
|
| 3 |
-
torchvision
|
| 4 |
ipython
|
|
|
|
| 1 |
+
fastai==2.7.18
|
| 2 |
+
torch==2.1.2
|
| 3 |
+
torchvision==0.16.2
|
| 4 |
ipython
|