Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,8 +16,10 @@ model.fit(x_train, y_train)
|
|
| 16 |
|
| 17 |
accuracy = model.score(x_test, y_test)
|
| 18 |
|
| 19 |
-
def greet(
|
| 20 |
-
return model.predict([[
|
| 21 |
|
| 22 |
-
iface = gr.Interface(fn=greet,
|
|
|
|
|
|
|
| 23 |
iface.launch()
|
|
|
|
| 16 |
|
| 17 |
accuracy = model.score(x_test, y_test)
|
| 18 |
|
| 19 |
+
def greet(sepal_length,sepal_weidth,petal_length,petal_weidth):
|
| 20 |
+
return model.predict([[sepal_length,sepal_weidth,petal_length,petal_weidth]])
|
| 21 |
|
| 22 |
+
iface = gr.Interface(fn=greet, description="you have to give the 4 values sepal_length, sepal_weidth, petal_length and petal_weidth amd the project will predict the specie",
|
| 23 |
+
title="iris flower species classifier",
|
| 24 |
+
inputs=["number","number","number","number"], outputs="textbox")
|
| 25 |
iface.launch()
|