Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -110,7 +110,7 @@ def generate_textual_description(box_info):
|
|
| 110 |
if left_zero:
|
| 111 |
textual_description += f"There is a zero on the left side of the number line. Its coordinate is (({left_most_zero_cor[0]:.2f}, {left_most_zero_cor[1]:.2f}), ({left_most_zero_cor[2]:.2f}, {left_most_zero_cor[3]:.2f}))"
|
| 112 |
if right_one:
|
| 113 |
-
textual_description += f"There is a one on the right side of the number line. Its coordinate is (({
|
| 114 |
present_classes = ['fraction', 'tick']
|
| 115 |
for cid, boxes in class_summary.items():
|
| 116 |
class_name = cid
|
|
|
|
| 110 |
if left_zero:
|
| 111 |
textual_description += f"There is a zero on the left side of the number line. Its coordinate is (({left_most_zero_cor[0]:.2f}, {left_most_zero_cor[1]:.2f}), ({left_most_zero_cor[2]:.2f}, {left_most_zero_cor[3]:.2f}))"
|
| 112 |
if right_one:
|
| 113 |
+
textual_description += f"There is a one on the right side of the number line. Its coordinate is (({right_most_one_cor[0]:.2f}, {right_most_one_cor[1]:.2f}), ({right_most_one_cor[2]:.2f}, {right_most_one_cor[3]:.2f}))"
|
| 114 |
present_classes = ['fraction', 'tick']
|
| 115 |
for cid, boxes in class_summary.items():
|
| 116 |
class_name = cid
|