ankitdotpy commited on
Commit
2632415
·
verified ·
1 Parent(s): d86f7a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -1,16 +1,9 @@
1
  from joblib import load
2
  import gradio as gr
3
 
4
- def load_svm_model(model_path):
5
- # Load the trained SVM model using joblib
6
- model = load(model_path)
7
- return model
8
-
9
- # Construct the full file path by joining the directory path and the file name
10
- model_file_path = "D:/Ankit_Kumar/Ankit_svm_model.joblib"
11
 
12
  # Load SVM model from the local file path
13
- svm_model = load_svm_model(model_file_path)
14
 
15
  # Define prediction function
16
  def predict_sentiment(text):
 
1
  from joblib import load
2
  import gradio as gr
3
 
 
 
 
 
 
 
 
4
 
5
  # Load SVM model from the local file path
6
+ svm_model = pipeline("ankitdotpy/SVM_model_by_Group12")
7
 
8
  # Define prediction function
9
  def predict_sentiment(text):