File size: 600 Bytes
525c511 | 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 | # GRADIO API Migration Guide
AEGIS Bio-Digital Lab 10 now uses Gradio API instead of FastAPI.
## Quick Start
Windows: `start-gradio-api.bat`
Linux/Mac: `./start-gradio-api.sh`
API URL: http://localhost:7860
API Docs: http://localhost:7860/?view=api
## Main Endpoint
POST `/api/predict` - Generate images
Request: `{"data": ["prompt", width, height, num_images, steps, guidance, seed]}`
## Example
```python
from gradio_client import Client
client = Client("http://localhost:7860")
result = client.predict("virus", 512, 512, 1, 4, 1.0, -1, api_name="/predict")
```
Contact: info@gss-tec.com
|