Jan commited on
Commit
302cd89
·
1 Parent(s): bc8d924

add formatting to line score string

Browse files
Files changed (1) hide show
  1. app/app.py +5 -1
app/app.py CHANGED
@@ -343,4 +343,8 @@ def lineScore():
343
  score = initBackend.line_score(val, w_density=input.w_density(), w_income=input.w_income(), w_age=input. w_age(), radius=input.rad())
344
 
345
  lines.append((key, score["final_score"]))
346
- return lines
 
 
 
 
 
343
  score = initBackend.line_score(val, w_density=input.w_density(), w_income=input.w_income(), w_age=input. w_age(), radius=input.rad())
344
 
345
  lines.append((key, score["final_score"]))
346
+
347
+ # Format the output
348
+ formatted_output = "\n".join(f"{key}: {float(value):.3f}" for key, value in lines)
349
+ print(formatted_output)
350
+ return formatted_output