Update default values for wine quality prediction
Browse files
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"),
|
42 |
-
gr.Number(label="volatile_acidity"),
|
43 |
-
gr.Number(label="citric_acid"),
|
44 |
-
gr.Number(label="residual_sugar"),
|
45 |
-
gr.Number(label="chlorides"),
|
46 |
-
gr.Number(label="total_sulfur_dioxide"),
|
47 |
-
gr.Number(label="ph"),
|
48 |
-
gr.Number(label="sulphates"),
|
49 |
-
gr.Number(label="alcohol"),
|
50 |
-
gr.Radio(["red", "white"], label="type")
|
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", 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 |
|