chaitravi commited on
Commit
a5baca0
·
verified ·
1 Parent(s): b55e08d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ else:
15
  raise ValueError("HUGGINGFACE_TOKEN environment variable not set.")
16
 
17
  # Load the trained model and tokenizer
18
- model_name = "your-username/hate-speech-classifier" # Replace with your actual Hugging Face model repo
19
  model = AutoModelForSequenceClassification.from_pretrained(model_name)
20
  tokenizer = AutoTokenizer.from_pretrained(model_name)
21
  device = "cuda" if torch.cuda.is_available() else "cpu"
 
15
  raise ValueError("HUGGINGFACE_TOKEN environment variable not set.")
16
 
17
  # Load the trained model and tokenizer
18
+ model_name = "chaitravi/hate-speech-classifier" # Replace with your actual Hugging Face model repo
19
  model = AutoModelForSequenceClassification.from_pretrained(model_name)
20
  tokenizer = AutoTokenizer.from_pretrained(model_name)
21
  device = "cuda" if torch.cuda.is_available() else "cpu"