Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -121,9 +121,9 @@ def format_output(lines, scores):
|
|
| 121 |
txt += "Detected lines:\n"
|
| 122 |
for line, scr in zip(lines[0], scores[0]):
|
| 123 |
txt += f"\tx1: {line[0].item():.2f}"
|
| 124 |
-
txt += f"\ty1: {line[
|
| 125 |
-
txt += f"\tx2: {line[
|
| 126 |
-
txt += f"\ty2: {line[
|
| 127 |
txt += f"\tscore: {scr.item():.2f}\n"
|
| 128 |
return txt
|
| 129 |
|
|
|
|
| 121 |
txt += "Detected lines:\n"
|
| 122 |
for line, scr in zip(lines[0], scores[0]):
|
| 123 |
txt += f"\tx1: {line[0].item():.2f}"
|
| 124 |
+
txt += f"\ty1: {line[1].item():.2f}"
|
| 125 |
+
txt += f"\tx2: {line[2].item():.2f}"
|
| 126 |
+
txt += f"\ty2: {line[3].item():.2f}"
|
| 127 |
txt += f"\tscore: {scr.item():.2f}\n"
|
| 128 |
return txt
|
| 129 |
|