Spaces:
Running
Running
Add app.py
Browse files
app.py
CHANGED
|
@@ -86,7 +86,7 @@ async def update_tunnel(request: Request):
|
|
| 86 |
new_url = body.get("tunnel_url", "")
|
| 87 |
if not new_url:
|
| 88 |
return JSONResponse({"error": "tunnel_url required"}, status_code=400)
|
| 89 |
-
space_id = os.environ.get("
|
| 90 |
hf_token = os.environ.get("HF_TOKEN", "")
|
| 91 |
try:
|
| 92 |
async with httpx.AsyncClient(timeout=15) as c:
|
|
|
|
| 86 |
new_url = body.get("tunnel_url", "")
|
| 87 |
if not new_url:
|
| 88 |
return JSONResponse({"error": "tunnel_url required"}, status_code=400)
|
| 89 |
+
space_id = os.environ.get("MY_SPACE_ID", "")
|
| 90 |
hf_token = os.environ.get("HF_TOKEN", "")
|
| 91 |
try:
|
| 92 |
async with httpx.AsyncClient(timeout=15) as c:
|