Skip to content

Commit

Permalink
[Error while using image-upscale-vary API, output image did not gener…
Browse files Browse the repository at this point in the history
…ated] Input should be a valid dictionary or instance of GeneratedImageResult

Fixes #222
  • Loading branch information
mrhan1993 committed Apr 9, 2024
1 parent 89c7934 commit 927a935
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion fooocusapi/utils/call_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,12 @@ def call_worker(req: Text2ImgRequest, accept: str) -> Response | AsyncJobRespons
job_progress=0,
job_status=None,
job_step_preview=None,
job_result=failure_results)
job_result=[GeneratedImageResult(
base64=None,
url=None,
seed='',
finish_reason=GenerationFinishReason.queue_is_full
)])
return generate_image_result_output(failure_results, False)

if req.async_process:
Expand Down

0 comments on commit 927a935

Please sign in to comment.