Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,6 @@ from llama_cpp import Llama
|
|
4 |
llm = Llama.from_pretrained("bartowski/starcoder2-15b-instruct-v0.1-GGUF", filename="starcoder2-15b-instruct-v0.1-Q6_K.gguf", n_ctx=16384, n_gpu_layers=99)
|
5 |
|
6 |
def code_block(txt, mdn):
|
7 |
-
txt = ""
|
8 |
mdn = mdn + "\n\n```javascript\n"
|
9 |
res = llm(
|
10 |
prompt=txt,
|
|
|
4 |
llm = Llama.from_pretrained("bartowski/starcoder2-15b-instruct-v0.1-GGUF", filename="starcoder2-15b-instruct-v0.1-Q6_K.gguf", n_ctx=16384, n_gpu_layers=99)
|
5 |
|
6 |
def code_block(txt, mdn):
|
|
|
7 |
mdn = mdn + "\n\n```javascript\n"
|
8 |
res = llm(
|
9 |
prompt=txt,
|