Spaces:
Running
Running
darksakura
commited on
Commit
•
3487b6c
1
Parent(s):
41107ad
Upload app.py
Browse files
app.py
CHANGED
@@ -129,7 +129,7 @@ def loadmodel(model_):
|
|
129 |
model_name = os.path.splitext(os.path.basename(model_))[0]
|
130 |
if os.path.exists("./kmeans/" + model_name + ".pt") == True:
|
131 |
model = Svc(model_, "configs/" + model_name + ".json", cluster_model_path="./kmeans/" + model_name + ".pt")
|
132 |
-
|
133 |
model = Svc(model_, "configs/" + model_name + ".json")
|
134 |
|
135 |
global sid
|
|
|
129 |
model_name = os.path.splitext(os.path.basename(model_))[0]
|
130 |
if os.path.exists("./kmeans/" + model_name + ".pt") == True:
|
131 |
model = Svc(model_, "configs/" + model_name + ".json", cluster_model_path="./kmeans/" + model_name + ".pt")
|
132 |
+
else:
|
133 |
model = Svc(model_, "configs/" + model_name + ".json")
|
134 |
|
135 |
global sid
|