Sabse commited on
Commit ·
43f0fd5
1
Parent(s): 5890e56
Add application file
Browse files
app.py
CHANGED
|
@@ -12,12 +12,9 @@ im.thumbnail((192,192))
|
|
| 12 |
im
|
| 13 |
# Construct the absolute path to the file
|
| 14 |
# Get the absolute path to the current script's directory
|
| 15 |
-
|
| 16 |
|
| 17 |
-
|
| 18 |
-
parent_directory = os.path.abspath(os.path.join(current_directory, os.pardir))
|
| 19 |
-
|
| 20 |
-
file_path = os.path.join(parent_directory, 'large', 'sphynx.pkl')
|
| 21 |
learn= load_learner(file_path)
|
| 22 |
|
| 23 |
|
|
|
|
| 12 |
im
|
| 13 |
# Construct the absolute path to the file
|
| 14 |
# Get the absolute path to the current script's directory
|
| 15 |
+
from fastai.learner import load_learner
|
| 16 |
|
| 17 |
+
file_path = os.path.join('/Users', 'scaspary', 'Desktop', 'fastai', 'large', 'sphynx.pkl')
|
|
|
|
|
|
|
|
|
|
| 18 |
learn= load_learner(file_path)
|
| 19 |
|
| 20 |
|