Update input types to gr.Number.
Browse files
app.py
CHANGED
@@ -32,16 +32,16 @@ iface = gr.Interface(
|
|
32 |
description="Predict the quality of a wine based on its features.",
|
33 |
allow_flagging="never",
|
34 |
inputs=[
|
35 |
-
gr.
|
36 |
-
gr.
|
37 |
-
gr.
|
38 |
-
gr.
|
39 |
-
gr.
|
40 |
-
gr.
|
41 |
-
gr.
|
42 |
-
gr.
|
43 |
-
gr.
|
44 |
-
gr.
|
45 |
],
|
46 |
outputs=gr.Number(type="number"))
|
47 |
|
|
|
32 |
description="Predict the quality of a wine based on its features.",
|
33 |
allow_flagging="never",
|
34 |
inputs=[
|
35 |
+
gr.Number(label="alcohol"),
|
36 |
+
gr.Number(label="chlorides"),
|
37 |
+
gr.Number(label="citric acid"),
|
38 |
+
gr.Number(label="fixed acidity"),
|
39 |
+
gr.Number(label="ph"),
|
40 |
+
gr.Number(label="residual sugar"),
|
41 |
+
gr.Number(label="sulphates"),
|
42 |
+
gr.Number(label="total sulfur dioxide"),
|
43 |
+
gr.Number(label="type"),
|
44 |
+
gr.Number(label="volatile acidity"),
|
45 |
],
|
46 |
outputs=gr.Number(type="number"))
|
47 |
|