Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -208,7 +208,7 @@ def generate_sgg(image):
|
|
| 208 |
draw.rectangle(bbox, outline="red", width=3)
|
| 209 |
draw.text((bbox[0], bbox[1] - 15), label, fill="red", font=font)
|
| 210 |
|
| 211 |
-
return image,
|
| 212 |
except:
|
| 213 |
return image, resp
|
| 214 |
|
|
|
|
| 208 |
draw.rectangle(bbox, outline="red", width=3)
|
| 209 |
draw.text((bbox[0], bbox[1] - 15), label, fill="red", font=font)
|
| 210 |
|
| 211 |
+
return image, f"objects:{pred_objs},\n relationships:{pred_rels}\n"
|
| 212 |
except:
|
| 213 |
return image, resp
|
| 214 |
|