Update main.py
Browse files
main.py
CHANGED
@@ -21,7 +21,7 @@ os.environ['TRANSFORMERS_CACHE'] = '/.cache/huggingface/hub'
|
|
21 |
# api_key = os.getenv('API_KEY')
|
22 |
# api_url = os.getenv('API_URL')
|
23 |
|
24 |
-
headers = {"Authorization": f"Bearer
|
25 |
API_URL = "https://api-inference.huggingface.co/models/ProsusAI/finbert"
|
26 |
def query(payload):
|
27 |
response = requests.post(API_URL, headers=headers, json=payload)
|
|
|
21 |
# api_key = os.getenv('API_KEY')
|
22 |
# api_url = os.getenv('API_URL')
|
23 |
|
24 |
+
headers = {"Authorization": f"Bearer token"}
|
25 |
API_URL = "https://api-inference.huggingface.co/models/ProsusAI/finbert"
|
26 |
def query(payload):
|
27 |
response = requests.post(API_URL, headers=headers, json=payload)
|