Update app.py
Browse files
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 |
|