Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from transformers import
|
| 3 |
|
| 4 |
# Load the model and tokenizer from Hugging Face Hub
|
| 5 |
tokenizer = DistilBertTokenizer.from_pretrained('distilbert-base-uncased')
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from transformers import DistilBertTokenizer, DistilBertForSequenceClassification
|
| 3 |
|
| 4 |
# Load the model and tokenizer from Hugging Face Hub
|
| 5 |
tokenizer = DistilBertTokenizer.from_pretrained('distilbert-base-uncased')
|