Spaces:
Runtime error
Runtime error
DeepSeek API Server
This is a FastAPI-based text generation API using the DeepSeek-R1 7B model.
Installation
- Clone this repository.
- Install dependencies:
pip install -r requirements.txt - Run the server:
uvicorn app:app --host 0.0.0.0 --port 7860
Usage
Send a POST request to /generate with a JSON payload:
{
"prompt": "What is AI?",
"max_tokens": 100
}