Spaces:
Sleeping
Sleeping
Factor Studios
commited on
Update http_storage.py
Browse files- http_storage.py +1 -2
http_storage.py
CHANGED
|
@@ -338,10 +338,9 @@ class HTTPGPUStorage:
|
|
| 338 |
"""Check if a model is loaded via HTTP API"""
|
| 339 |
try:
|
| 340 |
import urllib.parse
|
| 341 |
-
encoded_name = urllib.parse.quote(model_name, safe='')
|
| 342 |
response = self._make_request(
|
| 343 |
"GET",
|
| 344 |
-
f"/models/{
|
| 345 |
timeout=60
|
| 346 |
)
|
| 347 |
|
|
|
|
| 338 |
"""Check if a model is loaded via HTTP API"""
|
| 339 |
try:
|
| 340 |
import urllib.parse
|
|
|
|
| 341 |
response = self._make_request(
|
| 342 |
"GET",
|
| 343 |
+
f"/models/{model_name}/status",
|
| 344 |
timeout=60
|
| 345 |
)
|
| 346 |
|