Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,6 @@ llm = Llama.from_pretrained("bartowski/starcoder2-15b-instruct-v0.1-GGUF", filen
|
|
| 6 |
def code_block(txt, mdn):
|
| 7 |
return txt + (res := llm(
|
| 8 |
prompt=txt,
|
| 9 |
-
max_length=16384-len(txt),
|
| 10 |
stop=['###', '///', '\n\n\n\n'],
|
| 11 |
)['generated_text']), mdn+txt+res
|
| 12 |
# COnvert this to gr.Blocks()
|
|
|
|
| 6 |
def code_block(txt, mdn):
|
| 7 |
return txt + (res := llm(
|
| 8 |
prompt=txt,
|
|
|
|
| 9 |
stop=['###', '///', '\n\n\n\n'],
|
| 10 |
)['generated_text']), mdn+txt+res
|
| 11 |
# COnvert this to gr.Blocks()
|