ghost7 commited on
Commit
5705bf5
·
verified ·
1 Parent(s): 5773316

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,8 +2,8 @@ from transformers import DistilBertTokenizer, DistilBertForSequenceClassificatio
2
  import torch
3
  import gradio as gr
4
 
5
- # Load your saved model and tokenizer
6
- model_path = "fine_tuned_distilbert"
7
  tokenizer = DistilBertTokenizer.from_pretrained(model_path)
8
  model = DistilBertForSequenceClassification.from_pretrained(model_path)
9
 
 
2
  import torch
3
  import gradio as gr
4
 
5
+ # Load the pre-trained model and tokenizer from the root directory
6
+ model_path = "." # Use "." to indicate the root directory where files are located
7
  tokenizer = DistilBertTokenizer.from_pretrained(model_path)
8
  model = DistilBertForSequenceClassification.from_pretrained(model_path)
9