Orawan commited on
Commit
99a8526
·
1 Parent(s): 8ccbec1

Delete app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -9
app.py DELETED
@@ -1,9 +0,0 @@
1
- import streamlit as st
2
- from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
3
-
4
- # Load the tokenizer and model
5
- tokenizer = AutoTokenizer.from_pretrained("OatNapat/finetuned_yelp")
6
- model = AutoModelForSequenceClassification.from_pretrained("OatNapat/finetuned_yelp")
7
-
8
- # Create a sentiment analysis pipeline with the explicit tokenizer
9
- nlp = pipeline("sentiment-analysis", model=model, tokenizer=tokenizer)