update app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from transformers import pipeline
|
| 3 |
-
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 4 |
|
| 5 |
# Load the tokenizer and model
|
| 6 |
-
tokenizer = AutoTokenizer.from_pretrained('
|
| 7 |
model = AutoModelForSequenceClassification.from_pretrained('AmirRghp/distilbert-base-uncasedimdb-text-classification')
|
| 8 |
|
| 9 |
# Create the pipeline
|
|
|
|
| 1 |
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
|