Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] The server api returns one more_ #8

Closed
InfernalAzazel opened this issue Jan 23, 2024 · 1 comment
Closed

[BUG] The server api returns one more_ #8

InfernalAzazel opened this issue Jan 23, 2024 · 1 comment

Comments

@InfernalAzazel
Copy link

test:

curl -X POST \
  https://nexra.aryahcr.cc/api/image/complements \
  -H 'Content-Type: application/json' \
  -d '{
    "prompt": "Friends gathered around a bonfire in an ancient forest. Laughter, stories, and a starry sky paint an unforgettable moment of connection beneath the shadows of the mountains.",
    "model": "prodia",
    "data": {
        "model": "absolutereality_V16.safetensors [37db0fc3]",
        "steps": 25,
        "cfg_scale": 7,
        "sampler": "DPM++ 2M Karras",
        "negative_prompt": ""
    }
}'

response text:
bug: _

_{"code":200,"status":true,"prompt":"画一只狗","model":"Prodia","data":{"model":"absolutereality_V16.safetensors [37db0fc3]","steps":25,"cfg_scale":7,"sampler":"DPM++ 2M Karras","negative_prompt":""},"images":["data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAABDWlUWHRwYXJhbWV0ZXJzAAAAAADnlLvkuIDlj6rni5cKU3RlcHM6IDI1LCBTYW1wbGVyOiBEU ...."]}
@yandricr
Copy link
Owner

yandricr commented Jan 23, 2024

Yes, the thing is that my server only supports 30 seconds of waiting, and since I have other models that can take up to a minute or more, I have created a logic that stays alive until the process of the model you have chosen finishes, and There is no error, that's how I configured it

You must create the logic so that you can get the json, eliminating the "_", I can't do anything else with my server since I couldn't configure it so that it can support up to 5 minutes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants