Spaces:
Sleeping
Sleeping
Delete app.py
Browse files
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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|