Spaces:
Running
Running
admin
commited on
Commit
•
dbbe120
1
Parent(s):
6f1f7b9
add timeout for put
Browse files
app.py
CHANGED
@@ -129,7 +129,7 @@ def activate_space(url: str):
|
|
129 |
response = (
|
130 |
requests.get(url, timeout=TIMEOUT)
|
131 |
if ".hf.space" in url
|
132 |
-
else requests.put(url)
|
133 |
)
|
134 |
response.raise_for_status()
|
135 |
|
|
|
129 |
response = (
|
130 |
requests.get(url, timeout=TIMEOUT)
|
131 |
if ".hf.space" in url
|
132 |
+
else requests.put(url, timeout=TIMEOUT)
|
133 |
)
|
134 |
response.raise_for_status()
|
135 |
|