Update main.py
Browse files
main.py
CHANGED
@@ -15,7 +15,7 @@ app = Flask(__name__)
|
|
15 |
|
16 |
|
17 |
headers = {"Authorization": f"Bearer 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"}
|
18 |
-
API_URL = "https://api-inference.huggingface.co/models/
|
19 |
def query(payload):
|
20 |
response = requests.post(API_URL, headers=headers, json=payload)
|
21 |
return response.json()
|
|
|
15 |
|
16 |
|
17 |
headers = {"Authorization": f"Bearer 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"}
|
18 |
+
API_URL = "https://api-inference.huggingface.co/models/ProsusAI/finbert"
|
19 |
def query(payload):
|
20 |
response = requests.post(API_URL, headers=headers, json=payload)
|
21 |
return response.json()
|