Need information for rest api

#2
by Startup88 - opened

I see there are 2 Rest endpoints, One to generate image which return and event id and 2nd endpoint to get image from event_id. Can you please let us know where this code in file? I want to return image directly in first end point.

Also how long this images says in that location ? how to flush it ?

Startup88 changed discussion status to closed
Startup88 changed discussion status to open

Hi! You can get some info by clicking on "Use via API or MCP" text at the bottom left of app. In terms of images, I explicitly fixed that some time ago to avoid saving them here - https://huggingface.co/spaces/Oysiyl/AI-QR-code-generator/blob/main/app.py#L262 and here https://huggingface.co/spaces/Oysiyl/AI-QR-code-generator/blob/main/app.py#L295. According to my understanding, that should be more sufficient. If you want to get images to use in your program - check in "Use via API or MCP" MCP specifically - it allows you to use this Space directly in your Claude Desktop, Cursor, Vscode, anywhere. I hope I answered your question sufficiently here

Oysiyl changed discussion status to closed

Sign up or log in to comment