SadraCoding commited on
Commit
989bccf
·
verified ·
1 Parent(s): 7957b17

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ def predict(image):
8
  if image is None:
9
  return None
10
  results = classifier(image)
11
- return {result["label"]: result["score"] for result in results}
12
 
13
  gr.Interface(
14
  fn=predict,
 
8
  if image is None:
9
  return None
10
  results = classifier(image)
11
+ return result["label"]
12
 
13
  gr.Interface(
14
  fn=predict,