moshel commited on
Commit
5b9e651
·
1 Parent(s): 3577913
Files changed (1) hide show
  1. app.py +1 -1
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, img
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