Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -50,7 +50,7 @@ def get_sleep_time(hf_token):
|
|
| 50 |
gcTimeout = response.json()['runtime']['gcTimeout']
|
| 51 |
except:
|
| 52 |
gcTimeout = None
|
| 53 |
-
sleep_time = gcTimeout
|
| 54 |
return gcTimeout
|
| 55 |
|
| 56 |
#sleep_time = get_sleep_time(hf_token)
|
|
|
|
| 50 |
gcTimeout = response.json()['runtime']['gcTimeout']
|
| 51 |
except:
|
| 52 |
gcTimeout = None
|
| 53 |
+
global sleep_time = gcTimeout
|
| 54 |
return gcTimeout
|
| 55 |
|
| 56 |
#sleep_time = get_sleep_time(hf_token)
|