Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
Β·
3a610ea
1
Parent(s):
2397336
back to 2
Browse files
app.py
CHANGED
@@ -346,7 +346,7 @@ def load_image( infilename ) :
|
|
346 |
def throttled_inference(text):
|
347 |
global inferences_running
|
348 |
current = inferences_running
|
349 |
-
if current >=
|
350 |
print(f"Rejected inference when we already had {current} running")
|
351 |
return load_image("./gpu.jpg")
|
352 |
|
|
|
346 |
def throttled_inference(text):
|
347 |
global inferences_running
|
348 |
current = inferences_running
|
349 |
+
if current >= 2:
|
350 |
print(f"Rejected inference when we already had {current} running")
|
351 |
return load_image("./gpu.jpg")
|
352 |
|