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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -128,14 +128,11 @@ else:
128
  # ---------- DEFINE GRADIO INTERFACE ----------
129
  iface = gr.Interface(
130
  fn=predict_from_json,
131
- inputs=gr.JSON(label="ratios JSON (dict of feature -> value)", value=demo_data),
132
  outputs="json",
133
  title="Static Fingerprint Model API",
134
- description=(
135
- "Enter or edit the ratios JSON below. "
136
- "Click Submit to predict, or call this Space via POST /run/predict. "
137
- "Server normalises using saved means/stds and returns probabilities + state."
138
- )
139
  api_name="predict"
140
  )
141
  # ---------------------------------------------
 
128
  # ---------- DEFINE GRADIO INTERFACE ----------
129
  iface = gr.Interface(
130
  fn=predict_from_json,
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
  # ---------------------------------------------