vamsi1103 commited on
Commit
fd25379
·
verified ·
1 Parent(s): 932209a

Update app/__init__.py

Browse files
Files changed (1) hide show
  1. 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", "http://127.0.0.1:8000/health")
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: