Spaces:
Sleeping
Sleeping
Fix return values length to fix No API found crash
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def get_model():
|
|
| 37 |
def predict_batik(image: Image.Image):
|
| 38 |
"""Run inference and return structured Gradio outputs."""
|
| 39 |
if image is None:
|
| 40 |
-
return {}, "", ""
|
| 41 |
|
| 42 |
from inference import predict
|
| 43 |
|
|
|
|
| 37 |
def predict_batik(image: Image.Image):
|
| 38 |
"""Run inference and return structured Gradio outputs."""
|
| 39 |
if image is None:
|
| 40 |
+
return {}, "", ""
|
| 41 |
|
| 42 |
from inference import predict
|
| 43 |
|