Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -85,11 +85,11 @@ def load_pipeline():
|
|
85 |
model = SiameseNetwork() # model class/skeleton
|
86 |
|
87 |
# model.load_state_dict(torch.load(model_file))
|
88 |
-
|
89 |
# model = pipeline('image-classification', model=model_id, device='cpu')
|
90 |
# model.eval()
|
91 |
print(model)
|
92 |
-
return model
|
93 |
|
94 |
# Streamlit app UI template
|
95 |
st.title("Signature Forgery Detection")
|
|
|
85 |
model = SiameseNetwork() # model class/skeleton
|
86 |
|
87 |
# model.load_state_dict(torch.load(model_file))
|
88 |
+
load_model(model, model_file)
|
89 |
# model = pipeline('image-classification', model=model_id, device='cpu')
|
90 |
# model.eval()
|
91 |
print(model)
|
92 |
+
return model #.to('cpu')
|
93 |
|
94 |
# Streamlit app UI template
|
95 |
st.title("Signature Forgery Detection")
|