Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
•
05efb90
1
Parent(s):
bf062dc
Update app.py
Browse files
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 >=
|
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")
|