jvroo commited on
Commit
373219e
·
unverified ·
1 Parent(s): 38356dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ remote_model = "distilbert-base-uncased-finetuned-sst-2-english" # You can use
11
  local_pipeline = pipeline("sentiment-analysis", model=local_model)
12
 
13
  # Initialize the inference pipeline for remote model (same model for simplicity here)
14
- remote_pipeline = pipeline("sentiment-analysis", model=remote_model)
15
 
16
  # Function to perform sentiment analysis using the local pipeline
17
  def local_sentiment_analysis(review):
 
11
  local_pipeline = pipeline("sentiment-analysis", model=local_model)
12
 
13
  # Initialize the inference pipeline for remote model (same model for simplicity here)
14
+ remote_pipeline = InferenceClient("sentiment-analysis", model=remote_model)
15
 
16
  # Function to perform sentiment analysis using the local pipeline
17
  def local_sentiment_analysis(review):