Sabse commited on
Commit
43f0fd5
·
1 Parent(s): 5890e56

Add application file

Browse files
Files changed (1) hide show
  1. app.py +2 -5
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
- current_directory = os.path.abspath(os.path.dirname(__file__))
16
 
17
- # Get the absolute path to the parent directory
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