File size: 407 Bytes
3f98a5e
8ce028d
3f98a5e
5ab824d
 
3f98a5e
5ab824d
 
 
 
 
 
 
3f98a5e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gradio as gr
import pickle

model = pickle.load(open("model.pkl", "rb"))
vectorizer = pickle.load(open("vectorizer.pkl", "rb"))

def greet(description):
	new_query = description
	new_issue_vector = vectorizer.transform([new_query])
	prediction = model.predict(new_issue_vector)
	return prediction

iface = gr.Interface(fn=greet, inputs="text", outputs="label",title="Farming Tracker")
iface.launch()