Skip to content

Commit 448357c

Browse files
committed
Make server.py a uv runnable script
1 parent fb32d08 commit 448357c

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

examples/batch-processing/server.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
#!/usr/bin/env -S uv run --script
2+
# /// script
3+
# requires-python = ">=3.8"
4+
# dependencies = [
5+
# "fastapi",
6+
# "jinja2",
7+
# "llama-cpp-python",
8+
# "numpy",
9+
# "openai",
10+
# "pydantic",
11+
# "uvicorn",
12+
# ]
13+
# ///
14+
115
from __future__ import annotations
216

317
import abc
@@ -80,7 +94,6 @@
8094
from pydantic_core import from_json
8195
from pydantic import BaseModel, ConfigDict, Field, field_validator, model_validator
8296

83-
8497
from llama_cpp import llama_cpp # noqa: E402
8598

8699

0 commit comments

Comments
 (0)