Spaces:
Paused
Paused
Commit
·
8c2281d
1
Parent(s):
d79eab9
Update main.py
Browse files
main.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
from llama_cpp.server.app import create_app, Settings
|
| 2 |
-
import
|
| 3 |
|
| 4 |
with open("config.toml", "rb") as f:
|
| 5 |
-
settings =
|
| 6 |
|
| 7 |
settings = Settings(**settings)
|
| 8 |
|
|
|
|
| 1 |
from llama_cpp.server.app import create_app, Settings
|
| 2 |
+
import tomli
|
| 3 |
|
| 4 |
with open("config.toml", "rb") as f:
|
| 5 |
+
settings = tomli.load(f)
|
| 6 |
|
| 7 |
settings = Settings(**settings)
|
| 8 |
|