File size: 590 Bytes
7e405ea
 
 
1087336
 
7e405ea
 
1087336
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
title: Falcon 7B FastAPI Service
emoji: πŸš€
colorFrom: blue
colorTo: green
sdk: docker
pinned: true
app_port: 7860

license: apache-2.0



# 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"

}

```