Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -121,7 +121,7 @@ def generate_textual_description(box_info):
|
|
| 121 |
if count > 0:
|
| 122 |
textual_description += f"\nThere are {count} {class_name}s. Their coordinates are: "
|
| 123 |
for box in boxes:
|
| 124 |
-
textual_description += f"
|
| 125 |
if (class_name == "fraction"):
|
| 126 |
textual_description += f"\nThe fraction numbers from left to right are: {fraction_values}. "
|
| 127 |
return textual_description
|
|
|
|
| 121 |
if count > 0:
|
| 122 |
textual_description += f"\nThere are {count} {class_name}s. Their coordinates are: "
|
| 123 |
for box in boxes:
|
| 124 |
+
textual_description += f"(({box[0]:.2f}, {box[1]:.2f}), ({box[2]:.2f}, {box[3]:.2f})), "
|
| 125 |
if (class_name == "fraction"):
|
| 126 |
textual_description += f"\nThe fraction numbers from left to right are: {fraction_values}. "
|
| 127 |
return textual_description
|