Muinez commited on
Commit
69791ae
1 Parent(s): 9e7770f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -19,7 +19,7 @@ def predict(img):
19
 
20
  outputs = nn.functional.sigmoid(logits)
21
 
22
- return outputs[0][0].item(), outputs[0][1].item()
23
 
24
  gr.Interface(
25
  title="Artwork scorer",
@@ -27,7 +27,5 @@ gr.Interface(
27
  fn=predict,
28
  allow_flagging="never",
29
  inputs=gr.Image(type="pil"),
30
- outputs=[gr.Number(label="Score"), gr.Number(label="View count ratio (probably useless)")]
31
- ).launch()
32
-
33
-
 
19
 
20
  outputs = nn.functional.sigmoid(logits)
21
 
22
+ return outputs[0][0].item(), outputs[0][1].item(), outputs[0][2].item()
23
 
24
  gr.Interface(
25
  title="Artwork scorer",
 
27
  fn=predict,
28
  allow_flagging="never",
29
  inputs=gr.Image(type="pil"),
30
+ outputs=[gr.Number(label="Score"), gr.Number(label="View count ratio (probably useless)"), gr.Number(label="Upload date 0 - 2016, 1 - 2023")]
31
+ ).launch()