Spaces:
Running
Running
| title: LibraxisAI API Batch Tester | |
| emoji: π | |
| colorFrom: indigo | |
| colorTo: purple | |
| sdk: gradio | |
| sdk_version: "4.44.0" | |
| python_version: "3.10" | |
| app_file: app.py | |
| pinned: false | |
| # LibraxisAI / api-batch-tester | |
| Public Gradio Space that serves the multi-lane API tester (standalone HTML) so you can compare any `responses`-compatible endpoints side-by-side. | |
| ## How it works | |
| - The HTML tester is bundled as `api-tester.html` and rendered inside a minimal Gradio app (`app.py`). | |
| - No backend calls are proxied; the page talks directly to whichever endpoints you enter. | |
| - Optional basic auth protects the Space UI (recommended for private keys). | |
| ## Running locally | |
| ```bash | |
| pip install -r requirements.txt | |
| python app.py # opens on http://0.0.0.0:7860 | |
| ``` | |
| ## Environment variables | |
| - `GRADIO_USERNAME`, `GRADIO_PASSWORD` β optional single-user basic auth. | |
| - `GRADIO_AUTH` β optional comma-separated list of `user:pass` pairs (overrides/extends the above). | |
| - `API_TESTER_HTML` β optional path to a custom HTML tester file (defaults to bundled `api-tester.html`). | |
| - `PORT` or `GRADIO_PORT` β port to bind (default 7860). | |
| **Recommended:** set `GRADIO_AUTH` (or `GRADIO_USERNAME`/`GRADIO_PASSWORD`) when running this Space publicly; keys are BYOK and stay in the browser, but auth protects against casual misuse. | |
| ## Safety notes | |
| - The tester form includes an API key field; when the Space is public, advise users not to paste production secrets unless behind auth. | |
| - The app itself stores nothing; all calls go from the browser to the user-provided endpoints. | |