Ahsen Khaliq commited on
Commit
05efb90
1 Parent(s): bf062dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ inferences_running = 0
47
  def throttled_inference(image):
48
  global inferences_running
49
  current = inferences_running
50
- if current >= 2:
51
  print(f"Rejected inference when we already had {current} running")
52
  return "cpu.jpg"
53
  print(f"Inference starting when we already had {current} running")
 
47
  def throttled_inference(image):
48
  global inferences_running
49
  current = inferences_running
50
+ if current >= 1:
51
  print(f"Rejected inference when we already had {current} running")
52
  return "cpu.jpg"
53
  print(f"Inference starting when we already had {current} running")