chaitravi commited on
Commit
77e2eed
·
verified ·
1 Parent(s): 9786a27

Update app.py

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