Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -116,8 +116,6 @@ def sentiment_analysis(tweets,topic):
|
|
116 |
API_URL = "https://api-inference.huggingface.co/models/cardiffnlp/twitter-roberta-base-sentiment"
|
117 |
headers = {"Authorization": huggingFaceAuth}
|
118 |
|
119 |
-
print(len(tweet_procs))
|
120 |
-
|
121 |
def query(payload):
|
122 |
response = requests.post(API_URL, headers=headers, json=payload)
|
123 |
return response.json()
|
|
|
116 |
API_URL = "https://api-inference.huggingface.co/models/cardiffnlp/twitter-roberta-base-sentiment"
|
117 |
headers = {"Authorization": huggingFaceAuth}
|
118 |
|
|
|
|
|
119 |
def query(payload):
|
120 |
response = requests.post(API_URL, headers=headers, json=payload)
|
121 |
return response.json()
|