NightPrince commited on
Commit
4179758
·
verified ·
1 Parent(s): be110fc

Update app_streamlit.py

Browse files
Files changed (1) hide show
  1. app_streamlit.py +1 -1
app_streamlit.py CHANGED
@@ -42,7 +42,7 @@ def caption_image(img):
42
  @st.cache_resource
43
  def load_toxic_classifier():
44
  # Load local fine-tuned model (full absolute path)
45
- model_dir = "NightPrince/peft-distilbert-toxic-classifier/last-checkpoint"
46
  base_model = AutoModelForSequenceClassification.from_pretrained("distilbert-base-uncased", num_labels=9)
47
  model = PeftModel.from_pretrained(base_model, model_dir)
48
  tokenizer = AutoTokenizer.from_pretrained("distilbert-base-uncased")
 
42
  @st.cache_resource
43
  def load_toxic_classifier():
44
  # Load local fine-tuned model (full absolute path)
45
+ model_dir = "NightPrince/peft-distilbert-toxic-classifier"
46
  base_model = AutoModelForSequenceClassification.from_pretrained("distilbert-base-uncased", num_labels=9)
47
  model = PeftModel.from_pretrained(base_model, model_dir)
48
  tokenizer = AutoTokenizer.from_pretrained("distilbert-base-uncased")