Spaces:
Runtime error
Runtime error
commit
Browse files
utils.py
CHANGED
@@ -69,7 +69,7 @@ def make_pred_outside_india(input_img, model, device, user_location):
|
|
69 |
pred = F.softmax(pred).detach().numpy()
|
70 |
y_prob = pred.argmax(axis=1)[0]
|
71 |
|
72 |
-
if(user_location=='
|
73 |
class_label = classes_outside_india[y_prob]
|
74 |
elif(user_location=='India'):
|
75 |
class_label = classes_india[y_prob]
|
|
|
69 |
pred = F.softmax(pred).detach().numpy()
|
70 |
y_prob = pred.argmax(axis=1)[0]
|
71 |
|
72 |
+
if(user_location=='Outside India'):
|
73 |
class_label = classes_outside_india[y_prob]
|
74 |
elif(user_location=='India'):
|
75 |
class_label = classes_india[y_prob]
|