Update app.py
Browse files
app.py
CHANGED
@@ -152,6 +152,9 @@ def answer_user(message,history):
|
|
152 |
|
153 |
def answer_bot(message,history,audience,sources):
|
154 |
|
|
|
|
|
|
|
155 |
# if len(message) <= 2:
|
156 |
# complete_response = "**⚠️ No relevant passages found in the climate science reports (IPCC and IPBES), you may want to ask a more specific question (specifying your question on climate and biodiversity issues).**"
|
157 |
# history[-1][1] += "\n\n" + complete_response
|
|
|
152 |
|
153 |
def answer_bot(message,history,audience,sources):
|
154 |
|
155 |
+
if len(sources) == 0:
|
156 |
+
sources = ["IPCC"]
|
157 |
+
|
158 |
# if len(message) <= 2:
|
159 |
# complete_response = "**⚠️ No relevant passages found in the climate science reports (IPCC and IPBES), you may want to ask a more specific question (specifying your question on climate and biodiversity issues).**"
|
160 |
# history[-1][1] += "\n\n" + complete_response
|