Theo Alves Da Costa commited on
Commit
dae4bee
1 Parent(s): c974ee5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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