Ahsen Khaliq commited on
Commit
50a1bcc
Β·
1 Parent(s): 7bfac8f
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -348,7 +348,7 @@ def load_image( infilename ) :
348
  def throttled_inference(text, seed, step_size, max_iterations, width, height):
349
  global inferences_running
350
  current = inferences_running
351
- if current >= 4:
352
  print(f"Rejected inference when we already had {current} running")
353
  return load_image("./gpu.jpg")
354
  print(f"Inference starting when we already had {current} running")
 
348
  def throttled_inference(text, seed, step_size, max_iterations, width, height):
349
  global inferences_running
350
  current = inferences_running
351
+ if current >= 3:
352
  print(f"Rejected inference when we already had {current} running")
353
  return load_image("./gpu.jpg")
354
  print(f"Inference starting when we already had {current} running")