jonathanjordan21 commited on
Commit
3446916
·
verified ·
1 Parent(s): 6867fa8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -43,12 +43,12 @@ def predict_score(lat, lon):
43
  score = (1 * np.abs(mu_pred + 0.1)) * 100
44
 
45
  # You can apply any post-processing here
46
- return {
47
- "Score": round(float(score), 3),
48
- "Number of current ATMs": round(float(mu_pred), 3),
49
- "Number of ideal ATMs" : num_banks
50
  # "Normal Score": round(float(normal_score), 3),
51
- }
52
 
53
  # ======== Gradio Interface ========
54
  interface = gr.Interface(
 
43
  score = (1 * np.abs(mu_pred + 0.1)) * 100
44
 
45
  # You can apply any post-processing here
46
+ return (
47
+ round(float(score), 3),
48
+ num_banks,
49
+ round(float(mu_pred), 3),
50
  # "Normal Score": round(float(normal_score), 3),
51
+ )
52
 
53
  # ======== Gradio Interface ========
54
  interface = gr.Interface(