Spaces:
Sleeping
Sleeping
title: Demo Falcon API | |
emoji: π | |
colorFrom: blue | |
colorTo: green | |
sdk: docker | |
sdk_version: "3.0" | |
app_file: app.py | |
pinned: false | |
# Falcon 7B FastAPI Service | |
This Space hosts a FastAPI application that serves the Falcon 7B model for text generation. The API is deployed using Docker. | |
## Endpoints | |
### `/generate` | |
**Method**: POST | |
**Description**: Generate text from a given prompt. | |
**Payload**: | |
```json | |
{ | |
"prompt": "Your input prompt", | |
"max_length": 50 | |
} | |
``` | |
**Response**: | |
```json | |
{ | |
"generated_text": "Generated text from Falcon 7B" | |
} | |
``` |