quocviethere commited on
Commit
0bc2ca7
·
verified ·
1 Parent(s): 542254c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from transformers import pipeline
3
 
4
  # Initialize the sentiment analysis pipeline with your model
5
- sentiment_pipeline = pipeline("sentiment-analysis", model="your-username/imdb-roberta")
6
 
7
  def analyze_sentiment(text):
8
  result = sentiment_pipeline(text)[0]
 
2
  from transformers import pipeline
3
 
4
  # Initialize the sentiment analysis pipeline with your model
5
+ sentiment_pipeline = pipeline("sentiment-analysis", model="quocviethere/imdb-roberta")
6
 
7
  def analyze_sentiment(text):
8
  result = sentiment_pipeline(text)[0]