Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -285,7 +285,7 @@ with app_tab:
|
|
285 |
with st.spinner("Wait for it...", show_time=True):
|
286 |
# Run the predictions
|
287 |
prediction = prod_function(app, image_paths, picture)
|
288 |
-
|
289 |
match_idx = torch.argmax(prediction)
|
290 |
st.write(prediction)
|
291 |
st.write(image_paths)
|
|
|
285 |
with st.spinner("Wait for it...", show_time=True):
|
286 |
# Run the predictions
|
287 |
prediction = prod_function(app, image_paths, picture)
|
288 |
+
prediction = torch.cat(prediction, 0).to(device)
|
289 |
match_idx = torch.argmax(prediction)
|
290 |
st.write(prediction)
|
291 |
st.write(image_paths)
|