AmirRghp commited on
Commit
283f366
·
1 Parent(s): 1c55f2c

update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
3
 
4
  # Load the tokenizer and model
5
- tokenizer = AutoTokenizer.from_pretrained('distilbert-base-uncased')
6
  model = AutoModelForSequenceClassification.from_pretrained('AmirRghp/distilbert-base-uncasedimdb-text-classification')
7
 
8
  # Create the pipeline
 
2
  from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
3
 
4
  # Load the tokenizer and model
5
+ tokenizer = AutoTokenizer.from_pretrained('AmirRghp/distilbert-base-uncasedimdb-text-classification', add_prefix_space=True)
6
  model = AutoModelForSequenceClassification.from_pretrained('AmirRghp/distilbert-base-uncasedimdb-text-classification')
7
 
8
  # Create the pipeline