Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,11 +31,11 @@ async def proxy_request(request: Request):
|
|
| 31 |
encoded_params = urlencode(query_params)
|
| 32 |
|
| 33 |
# Construct the full URL for the private space endpoint
|
| 34 |
-
private_api_url = f"{api_url}/eins?{encoded_params}"
|
| 35 |
|
| 36 |
# Use httpx to make an asynchronous GET request to the private API
|
| 37 |
try:
|
| 38 |
-
print('params', private_api_url
|
| 39 |
async with httpx.AsyncClient(timeout=60.0) as client:
|
| 40 |
response = await client.get(private_api_url, headers=headers)
|
| 41 |
response.raise_for_status() # Raise an exception for 4xx/5xx responses
|
|
|
|
| 31 |
encoded_params = urlencode(query_params)
|
| 32 |
|
| 33 |
# Construct the full URL for the private space endpoint
|
| 34 |
+
private_api_url = f"{api_url}/eins/?{encoded_params}"
|
| 35 |
|
| 36 |
# Use httpx to make an asynchronous GET request to the private API
|
| 37 |
try:
|
| 38 |
+
print('params', private_api_url)
|
| 39 |
async with httpx.AsyncClient(timeout=60.0) as client:
|
| 40 |
response = await client.get(private_api_url, headers=headers)
|
| 41 |
response.raise_for_status() # Raise an exception for 4xx/5xx responses
|