Ankur Goyal commited on
Commit
2f6c963
1 Parent(s): 02201b7

Only run the pipeline if a question is specified

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -134,7 +134,7 @@ colors = ["#64A087", "green", "black"]
134
 
135
 
136
  def process_question(question, document, model=list(CHECKPOINTS.keys())[0]):
137
- if document is None:
138
  return None, None, None
139
 
140
  text_value = None
 
134
 
135
 
136
  def process_question(question, document, model=list(CHECKPOINTS.keys())[0]):
137
+ if not question or document is None:
138
  return None, None, None
139
 
140
  text_value = None