Spaces:
Runtime error
Runtime error
Commit
·
760220f
1
Parent(s):
cf45ba6
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ import requests
|
|
4 |
import hopsworks
|
5 |
import joblib
|
6 |
import pandas as pd
|
|
|
7 |
|
8 |
project = hopsworks.login(project="zeihers_mart")
|
9 |
fs = project.get_feature_store()
|
@@ -31,12 +32,12 @@ demo = gr.Interface(
|
|
31 |
description="Experiment with inputs to predict wine quality.",
|
32 |
allow_flagging="never",
|
33 |
inputs=[
|
34 |
-
gr.Number(value=0, label="alcohol"),
|
35 |
-
gr.Number(value=0, label="volatile acidity"),
|
36 |
-
gr.Number(value=0, label="total sulfur dioxide"),
|
37 |
-
gr.Number(value=0, label="chlorides"),
|
38 |
-
gr.Number(value=0,
|
39 |
-
|
40 |
outputs=gr.Number(label="Prediction"))
|
41 |
|
42 |
demo.launch(debug=True)
|
|
|
4 |
import hopsworks
|
5 |
import joblib
|
6 |
import pandas as pd
|
7 |
+
import random
|
8 |
|
9 |
project = hopsworks.login(project="zeihers_mart")
|
10 |
fs = project.get_feature_store()
|
|
|
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 |
|
43 |
demo.launch(debug=True)
|