jonathanarns commited on
Commit
7587400
·
1 Parent(s): 760220f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -32,11 +32,11 @@ demo = gr.Interface(
32
  description="Experiment with inputs to predict wine quality.",
33
  allow_flagging="never",
34
  inputs=[
35
- gr.Number(value=random.uniform(8.0, 14.9), label="alcohol"),
36
- gr.Number(value=random.uniform(0.08, 1.58), step=0.1, label="volatile acidity"),
37
- gr.Number(value=random.uniform(6.0, 440.0), label="total sulfur dioxide"),
38
- gr.Number(value=random.uniform(0.009, 0.611), step=0.01, label="chlorides"),
39
- gr.Number(value=random.uniform(0.987, 1.039), step=0.01, label="density"),
40
  ],
41
  outputs=gr.Number(label="Prediction"))
42
 
 
32
  description="Experiment with inputs to predict wine quality.",
33
  allow_flagging="never",
34
  inputs=[
35
+ gr.Number(precision=3, value=random.uniform(8.0, 14.9), label="alcohol"),
36
+ gr.Number(precision=3, value=random.uniform(0.08, 1.58), step=0.1, label="volatile acidity"),
37
+ gr.Number(precision=3, value=random.uniform(6.0, 440.0), label="total sulfur dioxide"),
38
+ gr.Number(precision=3, value=random.uniform(0.009, 0.611), step=0.01, label="chlorides"),
39
+ gr.Number(precision=3, value=random.uniform(0.987, 1.039), step=0.01, label="density"),
40
  ],
41
  outputs=gr.Number(label="Prediction"))
42