Spaces:
Sleeping
Sleeping
tensorkelechi
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ class SiameseNetwork(nn.Module, PyTorchModelHubMixin):
|
|
51 |
|
52 |
|
53 |
# pretrained model file
|
54 |
-
model_file = '
|
55 |
|
56 |
|
57 |
# Function to compute similarity
|
@@ -71,7 +71,7 @@ def visualize_heatmap(model, image):
|
|
71 |
|
72 |
# Load the pre-trained model from safeetesor file
|
73 |
def load_pipeline():
|
74 |
-
model_file = '
|
75 |
# model_id = 'tensorkelechi/signature_mobilenet'
|
76 |
model = SiameseNetwork() # model class/skeleton
|
77 |
|
|
|
51 |
|
52 |
|
53 |
# pretrained model file
|
54 |
+
model_file = 'model.safetensors' #config.safetensor_file
|
55 |
|
56 |
|
57 |
# Function to compute similarity
|
|
|
71 |
|
72 |
# Load the pre-trained model from safeetesor file
|
73 |
def load_pipeline():
|
74 |
+
model_file = 'model.safetensors' #config.safetensor_file
|
75 |
# model_id = 'tensorkelechi/signature_mobilenet'
|
76 |
model = SiameseNetwork() # model class/skeleton
|
77 |
|