Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def restart():
|
|
41 |
api_name="/predict"
|
42 |
)
|
43 |
print("RESTARTED")
|
44 |
-
time.sleep(
|
45 |
except Exception as e:
|
46 |
print("NO INTERNET")
|
47 |
print(str(e))
|
|
|
41 |
api_name="/predict"
|
42 |
)
|
43 |
print("RESTARTED")
|
44 |
+
time.sleep(86400) #Restart Space every 24 hours
|
45 |
except Exception as e:
|
46 |
print("NO INTERNET")
|
47 |
print(str(e))
|