Spaces:
Running
on
Zero
empty response with API call
Hi,
I'm trying to use this awesome model via the API, but when I make a GET request, I always get the following response:
"
event: error
data: null
"
In my opinion, I have followed the API example usage exactly, but I'm still encountering this issue. Here's the request and response I'm sending:
"
request: {
url: https://multimodalart-logo-in-context.hf.space/gradio_api/call/generate,
method: POST,
headers: [
POST /gradio_api/call/generate HTTP/2,
Host: multimodalart-logo-in-context.hf.space,
Accept-Encoding: gzip, deflate,
Authorization: Bearer [hf_token],
Content-Type: application/json,
Accept: application/json,
Content-Length: 183
],
params: {
data: [
{path: https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png},
"hello!!!",
"hello!"
]
}
},
response: {
headers: [
HTTP/2 200,
date: Mon, 17 Feb 2025 10:21:09 GMT,
content-type: application/json,
content-length: 47,
server: uvicorn,
x-proxied-host: http://10.104.47.67,
x-proxied-path: /gradio_api/call/generate,
link: https://huggingface.co/spaces/multimodalart/logo-in-context;rel="canonical",
x-request-id: 5C_k33,
vary: origin, access-control-request-method, access-control-request-headers
],
result: {
event_id: 314d0a19611840fda9b98fcef4f8a72d
},
status: 200
}
"
Can someone explain what I might be doing wrong?