Update app.py
Browse files
app.py
CHANGED
@@ -124,7 +124,7 @@ def initialize_llmchain(llm_model, temperature, max_tokens, top_k, vector_db):
|
|
124 |
@spaces.GPU(duration=60)
|
125 |
def chat(message):
|
126 |
global qa_chain
|
127 |
-
prompt_template = "Instruction: You are an expert landlside assistant. Please provide a well written very well detailed helpful answer to the following user query only from the given references
|
128 |
full_input = prompt_template + message
|
129 |
response = qa_chain({"question": full_input})
|
130 |
full_answer = response["answer"]
|
|
|
124 |
@spaces.GPU(duration=60)
|
125 |
def chat(message):
|
126 |
global qa_chain
|
127 |
+
prompt_template = "Instruction: You are an expert landlside assistant. Please provide a well written very well detailed helpful answer to the following user query as an expert only from the given references here. User Query:\n"
|
128 |
full_input = prompt_template + message
|
129 |
response = qa_chain({"question": full_input})
|
130 |
full_answer = response["answer"]
|