Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ def question_answer(context, question):
|
|
| 21 |
mfile=download_model()
|
| 22 |
text=context + "\n\nQuestion: \"\"\"\n" + question + "\nPlease use markdown formatting for answer. \nAnswer:\n"
|
| 23 |
llm = Llama(model_path=mfile)
|
| 24 |
-
output = llm(text, max_tokens=33, stop=["### Response"
|
| 25 |
print(output)
|
| 26 |
return output.choices[0].text
|
| 27 |
'''
|
|
|
|
| 21 |
mfile=download_model()
|
| 22 |
text=context + "\n\nQuestion: \"\"\"\n" + question + "\nPlease use markdown formatting for answer. \nAnswer:\n"
|
| 23 |
llm = Llama(model_path=mfile)
|
| 24 |
+
output = llm(text, max_tokens=33, stop=["### Response"], echo=True)
|
| 25 |
print(output)
|
| 26 |
return output.choices[0].text
|
| 27 |
'''
|