Spaces:
Paused
Paused
capture enter 2
Browse files
app.py
CHANGED
@@ -182,7 +182,7 @@ if __name__ == "__main__":
|
|
182 |
|
183 |
def submit(query, lang, k):
|
184 |
if query == "":
|
185 |
-
|
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),
|