bhaskartripathi commited on
Commit
8e45d3e
1 Parent(s): 276ccc4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -150,8 +150,8 @@ def question_answer(url, file, question, openAI_key, model):
150
  if url.strip() != '' and file != None:
151
  return '[ERROR]: Both URL and PDF is provided. Please provide only one (either URL or PDF).'
152
 
153
- if model is None:
154
- return '[ERROR]: You have not selected any model. Please select an LLM model.'
155
 
156
  if url.strip() != '':
157
  glob_url = url
 
150
  if url.strip() != '' and file != None:
151
  return '[ERROR]: Both URL and PDF is provided. Please provide only one (either URL or PDF).'
152
 
153
+ if model is None or model =='':
154
+ return '[ERROR]: You have not selected any model. Please choose an LLM model.'
155
 
156
  if url.strip() != '':
157
  glob_url = url