Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -213,6 +213,8 @@ if picture is not None:
|
|
213 |
prediction = prod_function(model_pretrained, prod_dl, webcam_dl)
|
214 |
predictions = torch.cat(prediction, 0).to(device)
|
215 |
match_idx = torch.argmin(predictions)
|
|
|
|
|
216 |
|
217 |
# Display the results
|
218 |
if predictions[match_idx] <= 0.3:
|
|
|
213 |
prediction = prod_function(model_pretrained, prod_dl, webcam_dl)
|
214 |
predictions = torch.cat(prediction, 0).to(device)
|
215 |
match_idx = torch.argmin(predictions)
|
216 |
+
st.write(predictions)
|
217 |
+
st.write(image_paths)
|
218 |
|
219 |
# Display the results
|
220 |
if predictions[match_idx] <= 0.3:
|