pseudotheos commited on
Commit
075b52e
1 Parent(s): bddb72f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -299,6 +299,9 @@ async def generate_image(
299
  background_tasks: BackgroundTasks = BackgroundTasks()
300
  ):
301
  async def generate_image_task(job_id):
 
 
 
302
  try:
303
  # Save the uploaded image to a temporary file
304
  temp_image_path = f"/tmp/{job_id}_{image.filename}"
 
299
  background_tasks: BackgroundTasks = BackgroundTasks()
300
  ):
301
  async def generate_image_task(job_id):
302
+ global next_id_lock
303
+ global next_id
304
+
305
  try:
306
  # Save the uploaded image to a temporary file
307
  temp_image_path = f"/tmp/{job_id}_{image.filename}"