pierrelf commited on
Commit
b85cb6a
·
1 Parent(s): b609fa4

Update default values to value in inputs.

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -38,16 +38,16 @@ iface = gr.Interface(
38
  description="Predict the quality of a wine based on its features.",
39
  allow_flagging="never",
40
  inputs=[
41
- gr.Number(label="fixed_acidity", default=7.293673375526557),
42
- gr.Number(label="volatile_acidity", default=0.3),
43
- gr.Number(label="citric_acid", default=0.31),
44
- gr.Number(label="residual_sugar", default=2.2),
45
- gr.Number(label="chlorides", default=0.036),
46
- gr.Number(label="total_sulfur_dioxide", default=95.04095161413584),
47
- gr.Number(label="ph", default=3.3185304801763884),
48
- gr.Number(label="sulphates", default=0.6691971203117211),
49
- gr.Number(label="alcohol", default=13.1),
50
- gr.Radio(["red", "white"], label="type", default="white")
51
  ],
52
  outputs=gr.Number(label="quality"))
53
 
 
38
  description="Predict the quality of a wine based on its features.",
39
  allow_flagging="never",
40
  inputs=[
41
+ gr.Number(label="fixed_acidity", value=7.293673375526557),
42
+ gr.Number(label="volatile_acidity", value=0.3),
43
+ gr.Number(label="citric_acid", value=0.31),
44
+ gr.Number(label="residual_sugar", value=2.2),
45
+ gr.Number(label="chlorides", value=0.036),
46
+ gr.Number(label="total_sulfur_dioxide", value=95.04095161413584),
47
+ gr.Number(label="ph", value=3.3185304801763884),
48
+ gr.Number(label="sulphates", value=0.6691971203117211),
49
+ gr.Number(label="alcohol", value=13.1),
50
+ gr.Radio(["red", "white"], label="type", value="white")
51
  ],
52
  outputs=gr.Number(label="quality"))
53