Imran1 commited on
Commit
5e12b87
1 Parent(s): ed9c044

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,8 +1,8 @@
1
  from transformers import AutoTokenizer, AutoModelForSequenceClassification
2
 
3
- tokenizer = AutoTokenizer.from_pretrained("Imran1/sentimen_analysis_yelp",from_pt=True)
4
 
5
- model = AutoModelForSequenceClassification.from_pretrained("Imran1/sentimen_analysis_yelp",from_pt=True)
6
 
7
  from transformers import pipeline
8
  Data= pipeline("text-classification", model=model, tokenizer=tokenizer,top_k=5)
 
1
  from transformers import AutoTokenizer, AutoModelForSequenceClassification
2
 
3
+ tokenizer = AutoTokenizer.from_pretrained("Imran1/sentimen_analysis_yelp")
4
 
5
+ model = AutoModelForSequenceClassification.from_pretrained("Imran1/sentimen_analysis_yelp")
6
 
7
  from transformers import pipeline
8
  Data= pipeline("text-classification", model=model, tokenizer=tokenizer,top_k=5)