Spaces:
Paused
Paused
Commit
·
d362f04
1
Parent(s):
715339d
Update app.py
Browse files
app.py
CHANGED
@@ -305,9 +305,8 @@ async def start_fastapi():
|
|
305 |
|
306 |
print(f"Internal URL: http://{internal_ip}:7860")
|
307 |
print(f"Public URL: http://{public_ip}:7860")
|
308 |
-
queue_manager = ImageGenerationQueue()
|
309 |
|
310 |
-
# Start processing the image generation queue
|
311 |
queue_processing_task = asyncio.create_task(queue_manager.process_queue())
|
312 |
|
313 |
# Run FastAPI using hypercorn
|
@@ -317,4 +316,5 @@ async def start_fastapi():
|
|
317 |
|
318 |
# Call the asynchronous function using asyncio.run()
|
319 |
if __name__ == "__main__":
|
|
|
320 |
asyncio.run(start_fastapi())
|
|
|
305 |
|
306 |
print(f"Internal URL: http://{internal_ip}:7860")
|
307 |
print(f"Public URL: http://{public_ip}:7860")
|
|
|
308 |
|
309 |
+
# Start processing the existing image generation queue
|
310 |
queue_processing_task = asyncio.create_task(queue_manager.process_queue())
|
311 |
|
312 |
# Run FastAPI using hypercorn
|
|
|
316 |
|
317 |
# Call the asynchronous function using asyncio.run()
|
318 |
if __name__ == "__main__":
|
319 |
+
queue_manager = ImageGenerationQueue() # Create the queue_manager instance here
|
320 |
asyncio.run(start_fastapi())
|