Skip to content

Commit

Permalink
Merge pull request #283 from mrhan1993:mrhan1993/issue222
Browse files Browse the repository at this point in the history
[Error while using image-upscale-vary API, output image did not generated] Input should be a valid dictionary or instance of GeneratedImageResult
  • Loading branch information
mrhan1993 authored Apr 9, 2024
2 parents 89c7934 + 927a935 commit 148d3c7
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 148d3c7

Please sign in to comment.