Spaces:
Sleeping
Sleeping
Amanda Sarubbi commited on
Commit ·
062d0f5
1
Parent(s): f9608a9
final
Browse files
.DS_Store
CHANGED
|
Binary files a/.DS_Store and b/.DS_Store differ
|
|
|
app.py
CHANGED
|
@@ -30,7 +30,7 @@ def import_model(model_name):
|
|
| 30 |
# Function to predict outputs
|
| 31 |
def predict(img, model_name):
|
| 32 |
if (model_name == 'Geometric Figures & Solids'):
|
| 33 |
-
geo_learn = import_model('
|
| 34 |
preds = geo_learn.predict(img)
|
| 35 |
elif (model_name == 'Scenery, Natural Phenomena'):
|
| 36 |
landscape_learn = import_model('landscape_model.pkl')
|
|
@@ -42,7 +42,7 @@ def predict(img, model_name):
|
|
| 42 |
colors_learn = import_model('colors_model.pkl')
|
| 43 |
preds = colors_learn.predict(img)
|
| 44 |
elif (model_name == 'Buildings, Dwellings & Furniture'):
|
| 45 |
-
build_learn = import_model('
|
| 46 |
preds = build_learn.predict(img)
|
| 47 |
elif (model_name == 'Animals'):
|
| 48 |
anim_learn = import_model('animals.pkl')
|
|
|
|
| 30 |
# Function to predict outputs
|
| 31 |
def predict(img, model_name):
|
| 32 |
if (model_name == 'Geometric Figures & Solids'):
|
| 33 |
+
geo_learn = import_model('geometric_model.pkl')
|
| 34 |
preds = geo_learn.predict(img)
|
| 35 |
elif (model_name == 'Scenery, Natural Phenomena'):
|
| 36 |
landscape_learn = import_model('landscape_model.pkl')
|
|
|
|
| 42 |
colors_learn = import_model('colors_model.pkl')
|
| 43 |
preds = colors_learn.predict(img)
|
| 44 |
elif (model_name == 'Buildings, Dwellings & Furniture'):
|
| 45 |
+
build_learn = import_model('buildings.pkl')
|
| 46 |
preds = build_learn.predict(img)
|
| 47 |
elif (model_name == 'Animals'):
|
| 48 |
anim_learn = import_model('animals.pkl')
|