Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import requests.exceptions
|
|
5 |
from huggingface_hub import HfApi, hf_hub_download
|
6 |
from huggingface_hub.repocard import metadata_load
|
7 |
|
8 |
-
pipe = joblib.load("
|
9 |
inputs = [gr.Textbox(value = "The customer service was satisfactory.")]
|
10 |
outputs = [gr.Label(label = "Sentiment")]
|
11 |
title = "Sentiment Analysis"
|
|
|
5 |
from huggingface_hub import HfApi, hf_hub_download
|
6 |
from huggingface_hub.repocard import metadata_load
|
7 |
|
8 |
+
pipe = joblib.load("https://huggingface.co/spaces/scikit-learn/sentiment-analysis/tree/main/pipeline.pkl")
|
9 |
inputs = [gr.Textbox(value = "The customer service was satisfactory.")]
|
10 |
outputs = [gr.Label(label = "Sentiment")]
|
11 |
title = "Sentiment Analysis"
|