Spaces:
Paused
Paused
Commit
·
f0788cb
1
Parent(s):
71a53bb
Create main.py
Browse files
main.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from llama_cpp.server.app import create_app, Settings
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
import tomllib
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
import tomllib
|
| 8 |
+
|
| 9 |
+
with open("config.toml", "rb") as f:
|
| 10 |
+
settings = tomllib.load(f)
|
| 11 |
+
|
| 12 |
+
settings = Settings(**settings)
|
| 13 |
+
|
| 14 |
+
app = create_app(settings=settings)
|