Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
import pickle
|
| 2 |
import gradio as gr
|
| 3 |
-
|
| 4 |
def make_predicition(sepal_length,sepal_width,petal_length,petal_width):
|
| 5 |
with open("model_iris.pkl","rb") as f:
|
| 6 |
clf=pickle.load(f)
|
|
@@ -18,5 +17,6 @@ pet_len=gr.Number(label="PETAL LENGTH")
|
|
| 18 |
pet_wid=gr.Number(label="PETAL WIDTH")
|
| 19 |
#create the output
|
| 20 |
output=gr.Textbox()
|
|
|
|
| 21 |
app=gr.Interface(fn=make_predicition,inputs=[sep_len,sep_wid,pet_len,pet_wid],outputs=output)
|
| 22 |
app.launch()
|
|
|
|
| 1 |
import pickle
|
| 2 |
import gradio as gr
|
|
|
|
| 3 |
def make_predicition(sepal_length,sepal_width,petal_length,petal_width):
|
| 4 |
with open("model_iris.pkl","rb") as f:
|
| 5 |
clf=pickle.load(f)
|
|
|
|
| 17 |
pet_wid=gr.Number(label="PETAL WIDTH")
|
| 18 |
#create the output
|
| 19 |
output=gr.Textbox()
|
| 20 |
+
|
| 21 |
app=gr.Interface(fn=make_predicition,inputs=[sep_len,sep_wid,pet_len,pet_wid],outputs=output)
|
| 22 |
app.launch()
|