ChavinloSocialRise commited on
Commit
ab054e6
1 Parent(s): 041748b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from transformers import pipeline
3
 
4
  # Load a pre-trained sentiment-analysis model
5
- classifier = pipeline('ChavinloSocialRise/bot_rejection_model')
6
 
7
  # Define a function to classify the input text
8
  def classify_text(text):
 
2
  from transformers import pipeline
3
 
4
  # Load a pre-trained sentiment-analysis model
5
+ classifier = pipeline("sentiment-analysis", model="ChavinloSocialRise/bot_rejection_model")
6
 
7
  # Define a function to classify the input text
8
  def classify_text(text):