Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -82,8 +82,8 @@ async def worker():
|
|
82 |
@app.on_event("startup")
|
83 |
async def startup_event():
|
84 |
logger.info("Starting background worker...")
|
85 |
-
|
86 |
-
|
87 |
|
88 |
|
89 |
# Define the process function
|
|
|
82 |
@app.on_event("startup")
|
83 |
async def startup_event():
|
84 |
logger.info("Starting background worker...")
|
85 |
+
|
86 |
+
asyncio.create_task(worker()) # Start the worker in the background
|
87 |
|
88 |
|
89 |
# Define the process function
|