mrhan1993 / Fooocus-API

FastAPI powered API for Fooocus
GNU General Public License v3.0
567 stars 152 forks source link

Task queue error #374

Closed RyanRez closed 3 months ago

RyanRez commented 3 months ago

Hello,

i'm hosting the Fooocus API on BaseTen. It is deployed successfully.

However, when I interact with it to generate an image, i get this error in the logs:

[Coldboost] Internal Server Error

Traceback (most recent call last):
  File "/app/model_wrapper.py", line 440, in inner
    return func(*args, **kwargs)
  File "/app/model/model.py", line 180, in predict
    async_task = worker_queue.add_task(TaskType.text_2_img, params)
AttributeError: 'NoneType' object has no attribute 'add_task'

this was the body I sent (Node.js):

body: JSON.stringify({
        "prompt":"1girl"
})

Any help would be appreciated.