Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
a4eb8bf
1
Parent(s):
2c7d07c
Update app.py
Browse files
app.py
CHANGED
@@ -530,7 +530,7 @@ def throttled_inference(image):
|
|
530 |
current = inferences_running
|
531 |
if current >= 4:
|
532 |
print(f"Rejected inference when we already had {current} running")
|
533 |
-
return "gpu.jpg","gpu.jpg"
|
534 |
print(f"Inference starting when we already had {current} running")
|
535 |
inferences_running += 1
|
536 |
try:
|
|
|
530 |
current = inferences_running
|
531 |
if current >= 4:
|
532 |
print(f"Rejected inference when we already had {current} running")
|
533 |
+
return "gpu.jpg",Image.open("gpu.jpg")
|
534 |
print(f"Inference starting when we already had {current} running")
|
535 |
inferences_running += 1
|
536 |
try:
|