Docker Space: landing page + receipt and returns demos behind one gateway

#2
by madhusoodhans - opened
vLLM Semantic Router org

Turns this Space into a Docker Space that serves the vllm-sr demos landing page and both demos from one container:

  • / landing page (enter a vllm-sr API key, pick a demo)
  • /receipt/ receipt intake demo (D3 checks receipt photos before an LLM reads them)
  • /returns/ product returns demo (Vela + D3 decide, vllm-sr/auto words the reply)

How it runs: the README's sdk: docker switches the Space to Docker; the root Dockerfile builds one image
(Python 3.12 + Caddy). start.sh starts both demo servers, and Caddy on port 7860 routes the three paths. No models run
here: every call goes to the hosted vllm-sr API (app.vllm-sr.ai) with the key each visitor enters, so no secret is
needed. SOURCES.txt lists the demo commits it was built from.

Tested locally with the same image: key check and hand-off, receipt extract/reject/upload, returns chat end to end,
and a browser click-through with the Space inside a cross-origin frame (as on huggingface.co).

After merge the Space builds by itself (a few minutes, see the Logs tab).

madhusoodhans changed pull request status to open
shailens changed pull request status to merged

Sign up or log in to comment