File size: 594 Bytes
156851a
 
7e405ea
 
1087336
 
156851a
 
 
 
 
7e405ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---

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"

}

```