test
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def predict(inp):
|
|
53 |
with torch.no_grad():
|
54 |
prediction = model(img).softmax(1).numpy()
|
55 |
confidences = {labels[i]: float(prediction[0][i]) for i in range(2)}
|
56 |
-
return confidences,
|
57 |
|
58 |
import gradio as gr
|
59 |
|
|
|
53 |
with torch.no_grad():
|
54 |
prediction = model(img).softmax(1).numpy()
|
55 |
confidences = {labels[i]: float(prediction[0][i]) for i in range(2)}
|
56 |
+
return confidences, inp
|
57 |
|
58 |
import gradio as gr
|
59 |
|