shukdevdatta123 commited on
Commit
59d81fb
·
verified ·
1 Parent(s): 7773fa0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,8 +2,8 @@ import streamlit as st
2
  from transformers import DistilBertTokenizer, TFDistilBertForSequenceClassification
3
  import tensorflow as tf
4
 
5
- # Load the pre-trained model and tokenizer
6
- model_path = 'shukdevdatta123/Dreaddit_DistillBert_Stress_Model/'
7
  loaded_model = TFDistilBertForSequenceClassification.from_pretrained(model_path)
8
  loaded_tokenizer = DistilBertTokenizer.from_pretrained(model_path)
9
 
 
2
  from transformers import DistilBertTokenizer, TFDistilBertForSequenceClassification
3
  import tensorflow as tf
4
 
5
+ # Load the pre-trained model and tokenizer using the correct Hugging Face model repo ID
6
+ model_path = 'shukdevdatta123/Dreaddit_DistillBert_Stress_Model'
7
  loaded_model = TFDistilBertForSequenceClassification.from_pretrained(model_path)
8
  loaded_tokenizer = DistilBertTokenizer.from_pretrained(model_path)
9