Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,7 +47,8 @@ def add_label_to_image(image, label):
|
|
| 47 |
|
| 48 |
|
| 49 |
def plot_and_save_agent_image(agent_image, label, save_path=None):
|
| 50 |
-
pil_image = agent_image.to_raw()
|
|
|
|
| 51 |
labeled_image = add_label_to_image(pil_image, label)
|
| 52 |
#labeled_image.show()
|
| 53 |
if save_path:
|
|
|
|
| 47 |
|
| 48 |
|
| 49 |
def plot_and_save_agent_image(agent_image, label, save_path=None):
|
| 50 |
+
#pil_image = agent_image.to_raw()
|
| 51 |
+
pil_image=agent_image
|
| 52 |
labeled_image = add_label_to_image(pil_image, label)
|
| 53 |
#labeled_image.show()
|
| 54 |
if save_path:
|