Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 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)
|