Shivateja's picture
initial commit
cf26293
raw
history blame contribute delete
479 Bytes
import gradio as gr
def pre(x_axis ,y_axis ,z_axis):
if (knn.predict([[x_axis,y_axis,z_axis]])) == 1:
return("Eating");
elif(knn.predict([[x_axis,y_axis,z_axis]])) == 2:
return("Standing");
else:
return("Walking")
demo = gr.Interface(
pre,
["number","number", "number"],
"text",
title="Activity classification of your cattle",
description="Know what your cattle is doing anytime, anywhere!",
)
demo.launch(share = True)