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

more documentation about how to use http request #8104

Closed
Marijsoft opened this issue Apr 23, 2024 · 2 comments
Closed

more documentation about how to use http request #8104

Marijsoft opened this issue Apr 23, 2024 · 2 comments

Comments

@Marijsoft
Copy link

I hope someone can help me, my problem:

Time ago for use in another language the api of gradio you use
post with json paypload now it's not possibile on huggingface.co

the problem don't have documentation for others language how to make post, for example i try for this one https://huggingface.co/spaces/tonyassi/fashion-try-on

before you make post on https://huggingface.co/spaces/tonyassi/fashion-try-on/api/predict with json payload
{"data": ["imagetobase64","imagetobase64"]} now it's not possible you have
{"detail":"This API endpoint does not accept direct HTTP POST requests. Please join the queue to use this API."}

i try
https://huggingface.co/spaces/tonyassi/fashion-try-on/queue/join but have error session hash not found
i try this one
https://huggingface.co/spaces/tonyassi/fashion-try-on/queue/join?data=&person=https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png&clothing=examplebus.png but nothing

what it is the correct way for make a post on https(like curl) for new gradio version??? i don't know i looking on google but nothing!
i hope someone can help me. thank you

@abidlabs
Copy link
Member

Hi @Marijsoft yes this is something that we're working on, and have an existing issue here: #7331 so I'll go ahead and close

@abidlabs abidlabs closed this as not planned Won't fix, can't repro, duplicate, stale Apr 23, 2024
@ryanshrott
Copy link

@abidlabs Is this supported yet? I used to able to do it a year ago, and now it was removed from the docs!

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

3 participants