Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ llm = Llama(model_path= hf_hub_download(repo_id="TheBloke/airoboros-l2-13b-gpt4-
|
|
| 10 |
|
| 11 |
description = " Bro i dont want learn! i just want results(https://github.com/abetlen/llama-cpp-python)"
|
| 12 |
def generate_text(input_text):
|
| 13 |
-
output = llm(
|
| 14 |
return output['choices'][0]['text']
|
| 15 |
|
| 16 |
|
|
|
|
| 10 |
|
| 11 |
description = " Bro i dont want learn! i just want results(https://github.com/abetlen/llama-cpp-python)"
|
| 12 |
def generate_text(input_text):
|
| 13 |
+
output = llm("Q: {input_text} \n A:", max_tokens=1024, stop=["Q:", "\n"], echo=True,)
|
| 14 |
return output['choices'][0]['text']
|
| 15 |
|
| 16 |
|