Spaces:
Runtime error
Runtime error
Commit ·
8e85e78
1
Parent(s): 8afb58a
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ llm = Llama(model_path="ggml-model-q4_0.bin", n_ctx=256, n_batch=128)
|
|
| 5 |
|
| 6 |
def generate_text(input_text):
|
| 7 |
print(input_text)
|
| 8 |
-
output = llm(f"### Instruction:\n{input_text}\n\n### Response:\n", max_tokens=
|
| 9 |
print(output)
|
| 10 |
return output['choices'][0]['text']
|
| 11 |
|
|
|
|
| 5 |
|
| 6 |
def generate_text(input_text):
|
| 7 |
print(input_text)
|
| 8 |
+
output = llm(f"### Instruction:\n{input_text}\n\n### Response:\n", max_tokens=128, echo=False)
|
| 9 |
print(output)
|
| 10 |
return output['choices'][0]['text']
|
| 11 |
|