Spaces:
Sleeping
Sleeping
Sina Media Lab
commited on
Commit
·
7fa72b3
1
Parent(s):
e16685b
api change 3
Browse files
main.py
CHANGED
|
@@ -11,7 +11,7 @@ app = FastAPI(
|
|
| 11 |
|
| 12 |
# Load model at startup
|
| 13 |
try:
|
| 14 |
-
model = load("
|
| 15 |
target_names = ["setosa", "versicolor", "virginica"]
|
| 16 |
except FileNotFoundError:
|
| 17 |
model = None
|
|
|
|
| 11 |
|
| 12 |
# Load model at startup
|
| 13 |
try:
|
| 14 |
+
model = load("iris_knn.pkl")
|
| 15 |
target_names = ["setosa", "versicolor", "virginica"]
|
| 16 |
except FileNotFoundError:
|
| 17 |
model = None
|