Spaces:
Running
Running
File size: 1,563 Bytes
f0f86fc c4e64ca 08405ee c4e64ca |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
---
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.
|