unixpickle commited on
Commit
161157e
1 Parent(s): 58361e3

provide cropped input as an output

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -55,6 +55,7 @@ def classify(img: Image.Image):
55
  price_bins,
56
  years,
57
  make_models,
 
58
  )
59
 
60
 
@@ -66,6 +67,7 @@ iface = gr.Interface(
66
  gr.Label(label="Price Bin", num_top_classes=5),
67
  gr.Label(label="Year", num_top_classes=5),
68
  gr.Label(label="Make/Model", num_top_classes=10),
 
69
  ],
70
  )
71
  iface.queue(concurrency_count=2).launch()
 
55
  price_bins,
56
  years,
57
  make_models,
58
+ img,
59
  )
60
 
61
 
 
67
  gr.Label(label="Price Bin", num_top_classes=5),
68
  gr.Label(label="Year", num_top_classes=5),
69
  gr.Label(label="Make/Model", num_top_classes=10),
70
+ gr.Image(label="Cropped Input"),
71
  ],
72
  )
73
  iface.queue(concurrency_count=2).launch()