Spaces:
Sleeping
Sleeping
Update server.py
Browse files
server.py
CHANGED
|
@@ -13,12 +13,12 @@ def read_root():
|
|
| 13 |
def generate(prompt: str):
|
| 14 |
|
| 15 |
cmd = [
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
|
| 23 |
result = subprocess.run(cmd, capture_output=True, text=True)
|
| 24 |
|
|
|
|
| 13 |
def generate(prompt: str):
|
| 14 |
|
| 15 |
cmd = [
|
| 16 |
+
"/app/llama.cpp/build/bin/llama-cli",
|
| 17 |
+
"-m", MODEL_PATH,
|
| 18 |
+
"-p", prompt,
|
| 19 |
+
"-n", "300",
|
| 20 |
+
"--ctx-size", "8192"
|
| 21 |
+
]
|
| 22 |
|
| 23 |
result = subprocess.run(cmd, capture_output=True, text=True)
|
| 24 |
|