ola13 commited on
Commit
7207d19
·
1 Parent(s): 7b606e4

capture enter 2

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -182,7 +182,7 @@ if __name__ == "__main__":
182
 
183
  def submit(query, lang, k):
184
  if query == "":
185
- return ["", ""]
186
  return {
187
  results: scisearch(query, lang, k),
188
  flagging_form: gr.update(visible=True),
 
182
 
183
  def submit(query, lang, k):
184
  if query == "":
185
+ raise ValueError("Invalid query provided")
186
  return {
187
  results: scisearch(query, lang, k),
188
  flagging_form: gr.update(visible=True),