Karthix1 commited on
Commit
d5e03e0
·
verified ·
1 Parent(s): c06f4bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -1,4 +1,7 @@
1
  import gradio as gr
 
 
 
2
  def prediction(text):
3
  text_processed=(preprocess_nltk(text))
4
  ans=pipe2.predict([text_processed])
 
1
  import gradio as gr
2
+ import pickle
3
+ with open("sentiment_analysis_model.pkl", "rb") as file:
4
+ pipe2 = pickle.load(file)
5
  def prediction(text):
6
  text_processed=(preprocess_nltk(text))
7
  ans=pipe2.predict([text_processed])