Spaces:
Running
Running
Update app.py
Browse files
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
|
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(
|