SebasJanampa commited on
Commit
76ea628
·
verified ·
1 Parent(s): 4bb2e87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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[0].item():.2f}"
125
- txt += f"\tx2: {line[0].item():.2f}"
126
- txt += f"\ty2: {line[0].item():.2f}"
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