File size: 764 Bytes
ef6f7fd
 
 
 
 
c51d101
ef6f7fd
 
 
 
 
 
 
 
e5f91f5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: Hair Stable New
emoji: 💻
colorFrom: purple
colorTo: pink
sdk: docker
sdk_version: 5.46.1
app_file: app.py
pinned: false
license: mit
short_description: hair stable
---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

# Hair_stable_new

## API (FastAPI)

Base URL (Space): <your Space URL>

Bearer Token: `logicgo@123`

Endpoints:
- GET /health
- POST /upload (form-data: image=File) [Bearer]
- POST /get-hairswap (JSON) [Bearer]
- GET /download/{filename} [Bearer]
- GET /logs [Bearer]

Run locally:
```bash
python3 -m uvicorn server:app --host 0.0.0.0 --port 7861
```

On Hugging Face Spaces (Docker):
- Space type: Docker
- This repo includes a Dockerfile which starts the FastAPI app on port 7860.