Spaces:
Runtime error
Runtime error
Commit
·
ac53593
1
Parent(s):
cf87b0c
Update InferenceConfig.py
Browse files- InferenceConfig.py +3 -3
InferenceConfig.py
CHANGED
@@ -57,9 +57,9 @@ class InferenceConfig:
|
|
57 |
|
58 |
def find_model(self, model_list):
|
59 |
print("weights", self.weights)
|
60 |
-
for model_name
|
61 |
-
print("Path",
|
62 |
-
if
|
63 |
return model_name
|
64 |
print("not found")
|
65 |
return None
|
|
|
57 |
|
58 |
def find_model(self, model_list):
|
59 |
print("weights", self.weights)
|
60 |
+
for model_name in model_list:
|
61 |
+
print("Path", model_list[model_name], "->", model_name)
|
62 |
+
if model_list[model_name] == self.weights:
|
63 |
return model_name
|
64 |
print("not found")
|
65 |
return None
|