Spaces:
Runtime error
Runtime error
Professional PR
#2
by
fabianzeiher
- opened
- app.py +5 -5
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import hopsworks
|
|
| 5 |
import joblib
|
| 6 |
import pandas as pd
|
| 7 |
|
| 8 |
-
project = hopsworks.login(
|
| 9 |
fs = project.get_feature_store()
|
| 10 |
|
| 11 |
|
|
@@ -38,10 +38,10 @@ demo = gr.Interface(
|
|
| 38 |
description="Experiment with sepal/petal lengths/widths to predict which flower it is.",
|
| 39 |
allow_flagging="never",
|
| 40 |
inputs=[
|
| 41 |
-
gr.Number(
|
| 42 |
-
gr.Number(
|
| 43 |
-
gr.Number(
|
| 44 |
-
gr.Number(
|
| 45 |
],
|
| 46 |
outputs=gr.Image(type="pil"))
|
| 47 |
|
|
|
|
| 5 |
import joblib
|
| 6 |
import pandas as pd
|
| 7 |
|
| 8 |
+
project = hopsworks.login()
|
| 9 |
fs = project.get_feature_store()
|
| 10 |
|
| 11 |
|
|
|
|
| 38 |
description="Experiment with sepal/petal lengths/widths to predict which flower it is.",
|
| 39 |
allow_flagging="never",
|
| 40 |
inputs=[
|
| 41 |
+
gr.inputs.Number(default=2.0, label="sepal length (cm)"),
|
| 42 |
+
gr.inputs.Number(default=1.0, label="sepal width (cm)"),
|
| 43 |
+
gr.inputs.Number(default=2.0, label="petal length (cm)"),
|
| 44 |
+
gr.inputs.Number(default=1.0, label="petal width (cm)"),
|
| 45 |
],
|
| 46 |
outputs=gr.Image(type="pil"))
|
| 47 |
|
requirements.txt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
hopsworks
|
| 2 |
joblib
|
| 3 |
-
scikit-learn==1.
|
|
|
|
| 1 |
hopsworks
|
| 2 |
joblib
|
| 3 |
+
scikit-learn==1.1.1
|