Ermond commited on
Commit
1de9d3e
1 Parent(s): 5e702a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def predict(base64: str, queries: str, box_threshold: float, text_threshold: flo
35
  return {
36
  "scores": [float(s) for s in results[0]["scores"]],
37
  "labels": results[0]["labels"],
38
- "boxes": [[float(x) for x in box] for row in results[0]["boxes"]]
39
  }
40
 
41
  demo = gr.Interface(
 
35
  return {
36
  "scores": [float(s) for s in results[0]["scores"]],
37
  "labels": results[0]["labels"],
38
+ "boxes": [[float(x) for x in box] for box in results[0]["boxes"]]
39
  }
40
 
41
  demo = gr.Interface(