AronWolverine commited on
Commit
f23444f
·
verified ·
1 Parent(s): ff270f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -32,11 +32,11 @@ def upload():
32
  f = request.files['image']
33
 
34
  #print("current path")
35
- basepath = os.path.dirname(__file__)
36
- print("current path", basepath)
37
- filepath = os.path.join(basepath,'uploads',f.filename)
38
- print("upload folder is ", filepath)
39
- f.save(filepath)
40
 
41
  img=image.load_img(filepath,target_size=(224,224))
42
  img=image.img_to_array(img)
 
32
  f = request.files['image']
33
 
34
  #print("current path")
35
+ #basepath = os.path.dirname(__file__)
36
+ #print("current path", basepath)
37
+ #filepath = os.path.join(basepath,'uploads',f.filename)
38
+ #print("upload folder is ", filepath)
39
+ # f.save(filepath)
40
 
41
  img=image.load_img(filepath,target_size=(224,224))
42
  img=image.img_to_array(img)