Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,6 +89,7 @@ def format_prompt(query):
|
|
| 89 |
def qa_infer(query):
|
| 90 |
formatted_prompt = format_prompt(query)
|
| 91 |
result = chain({"question": formatted_prompt, "chat_history": chat_history})
|
|
|
|
| 92 |
return result['answer']
|
| 93 |
|
| 94 |
EXAMPLES = ["How to use IPU1_0 instead of A15_0 to process NDK in TDA2x-EVM",
|
|
|
|
| 89 |
def qa_infer(query):
|
| 90 |
formatted_prompt = format_prompt(query)
|
| 91 |
result = chain({"question": formatted_prompt, "chat_history": chat_history})
|
| 92 |
+
print(result['answer'])
|
| 93 |
return result['answer']
|
| 94 |
|
| 95 |
EXAMPLES = ["How to use IPU1_0 instead of A15_0 to process NDK in TDA2x-EVM",
|