Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,11 +16,9 @@ USER_PIC_PATH = "https://huggingface.co/spaces/PLRMB/P-MSQ-API-PREVIEW/resolve/m
|
|
| 16 |
|
| 17 |
def authorize(api_key):
|
| 18 |
test_data = {
|
| 19 |
-
"
|
| 20 |
-
"identificator": api_key
|
| 21 |
}
|
| 22 |
test_headers = {
|
| 23 |
-
"authorization": f"{URL_HEADER}",
|
| 24 |
'Accept': 'application/json'
|
| 25 |
}
|
| 26 |
|
|
@@ -30,7 +28,7 @@ def authorize(api_key):
|
|
| 30 |
print(f"Request Headers: {test_headers}")
|
| 31 |
print(f'{json.dumps(test_data)}')
|
| 32 |
response = requests.post(
|
| 33 |
-
"https://polrambora.com/
|
| 34 |
json=test_data,
|
| 35 |
timeout=10
|
| 36 |
)
|
|
|
|
| 16 |
|
| 17 |
def authorize(api_key):
|
| 18 |
test_data = {
|
| 19 |
+
"key": api_key
|
|
|
|
| 20 |
}
|
| 21 |
test_headers = {
|
|
|
|
| 22 |
'Accept': 'application/json'
|
| 23 |
}
|
| 24 |
|
|
|
|
| 28 |
print(f"Request Headers: {test_headers}")
|
| 29 |
print(f'{json.dumps(test_data)}')
|
| 30 |
response = requests.post(
|
| 31 |
+
"https://host.palple.polrambora.com/check_key_impv",
|
| 32 |
json=test_data,
|
| 33 |
timeout=10
|
| 34 |
)
|