TheoLvs commited on
Commit
80573b8
1 Parent(s): 759c2a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -107,7 +107,7 @@ def chat(
107
  ]
108
  )
109
 
110
- if len(docs) > 0:
111
  messages.append({"role": "system", "content": f"{os.environ['sources']}\n\n{sources}"})
112
 
113
  response = openai.Completion.create(
 
107
  ]
108
  )
109
 
110
+ if docs:
111
  messages.append({"role": "system", "content": f"{os.environ['sources']}\n\n{sources}"})
112
 
113
  response = openai.Completion.create(