ShairAli commited on
Commit
bf16268
·
1 Parent(s): 23dc311

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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(num1, num2,num3,num4):
20
- return model.predict([[num1,num2,num3,num4]])
21
 
22
- iface = gr.Interface(fn=greet, title="name editor", inputs=["number","number","number","number"], outputs="textbox")
 
 
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()