AmirRghp commited on
Commit
1c55f2c
·
1 Parent(s): 6dad9e3

update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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('AmirRghp/distilbert-base-uncasedimdb-text-classification')
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