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