ppsingh commited on
Commit
bd83677
·
verified ·
1 Parent(s): c50d42b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -141,7 +141,7 @@ async def chat(query,history, method, sources,reports,subtype, client_ip=None, s
141
  output_query = ""
142
  if method == "Search by Report Name":
143
  if len(reports) == 0:
144
- warning_message = "⚠️ **No Report Selected"
145
  history[-1] = (query, warning_message)
146
  # Update logs with the warning instead of answer
147
  logs_data = {
@@ -163,7 +163,7 @@ async def chat(query,history, method, sources,reports,subtype, client_ip=None, s
163
  return
164
  else:
165
  if sources is None and subtype is None:
166
- warning_message = "⚠️ **No Report Selected"
167
  history[-1] = (query, warning_message)
168
  # Update logs with the warning instead of answer
169
  logs_data = {
 
141
  output_query = ""
142
  if method == "Search by Report Name":
143
  if len(reports) == 0:
144
+ warning_message = "⚠️ **No Report Selected.** Please select the relevant reports."
145
  history[-1] = (query, warning_message)
146
  # Update logs with the warning instead of answer
147
  logs_data = {
 
163
  return
164
  else:
165
  if sources is None and subtype is None:
166
+ warning_message = "⚠️ **No Report Selected.** Please select the relevant reports."
167
  history[-1] = (query, warning_message)
168
  # Update logs with the warning instead of answer
169
  logs_data = {