COCODEDE04 commited on
Commit
b86dfe3
·
verified ·
1 Parent(s): 642e87b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -131,11 +131,11 @@ iface = gr.Interface(
131
  inputs=gr.JSON(label="ratios JSON (dict of feature -> value)"),
132
  outputs="json",
133
  title="Static Fingerprint Model API",
134
- description="POST a dict of your 21 ratios.",
135
- # 👇 add this line
136
- api_name="predict"
 
 
137
  )
138
- # ---------------------------------------------
139
-
140
  if __name__ == "__main__":
141
- iface.launch()
 
131
  inputs=gr.JSON(label="ratios JSON (dict of feature -> value)"),
132
  outputs="json",
133
  title="Static Fingerprint Model API",
134
+ description=(
135
+ "POST a dict of your 21 ratios. Server normalises using saved means/stds "
136
+ "and returns probabilities + predicted state."
137
+ ),
138
+ api_name="predict", # <<< ADD THIS LINE
139
  )
 
 
140
  if __name__ == "__main__":
141
+ iface.launch()