Lengyue пре 1 година
родитељ
комит
484d255518
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      tools/webui.py

+ 1 - 1
tools/webui.py

@@ -133,7 +133,7 @@ def inference(
 
         if result == "done":
             if payload["success"] is False:
-                raise payload["response"]
+                return None, build_html_error_message(payload["response"])
             break
 
         codes.append(result)