Spaces:
Sleeping
Sleeping
jvroo
commited on
Update app.py
Browse files
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 =
|
| 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):
|