Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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])
|