Noe831 commited on
Commit
f2318ed
·
1 Parent(s): efc4084

remove old lines

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -12,10 +12,6 @@ def classify_image(img):
12
  pred, idx, probs = learn.predict(img)
13
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
14
 
15
- demo = gr.Interface(classify_image, gr.Image(), gr.Label())
16
- if __name__ == "__main__":
17
- demo.launch()
18
-
19
  interface = gr.Interface(
20
  fn=classify_image,
21
  inputs=gr.Image(height=512, width=512),
 
12
  pred, idx, probs = learn.predict(img)
13
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
14
 
 
 
 
 
15
  interface = gr.Interface(
16
  fn=classify_image,
17
  inputs=gr.Image(height=512, width=512),