Spaces:
Sleeping
Sleeping
Update app/__init__.py
Browse files- app/__init__.py +1 -1
app/__init__.py
CHANGED
|
@@ -7,7 +7,7 @@ from contextlib import asynccontextmanager
|
|
| 7 |
async def keep_alive():
|
| 8 |
# Set SPACE_URL to your Hugging Face Space URL in the environment variables
|
| 9 |
# For example: https://your-username-your-space.hf.space/health
|
| 10 |
-
url = os.getenv("SPACE_URL", "
|
| 11 |
while True:
|
| 12 |
await asyncio.sleep(15 * 60) # Wait for 15 minutes
|
| 13 |
try:
|
|
|
|
| 7 |
async def keep_alive():
|
| 8 |
# Set SPACE_URL to your Hugging Face Space URL in the environment variables
|
| 9 |
# For example: https://your-username-your-space.hf.space/health
|
| 10 |
+
url = os.getenv("SPACE_URL", "https://vamsi1103-flask-ocr-api.hf.space/health")
|
| 11 |
while True:
|
| 12 |
await asyncio.sleep(15 * 60) # Wait for 15 minutes
|
| 13 |
try:
|