ggbetz commited on
Commit
b5a6c06
1 Parent(s): c12b0ec

Update app.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -360,8 +360,8 @@ def main():
360
 
361
 
362
  if submit:
363
- if ex_s != '...':
364
- st.warning('Please choose an example.')
365
  else:
366
  with st.spinner("Processing (may take a couple of minutes) ..."):
367
  output = run_model(modes_s,user_input)
 
360
 
361
 
362
  if submit:
363
+ if all(len(v)==0 for v in user_input.values()):
364
+ st.warning('Please choose an example, or provide input.')
365
  else:
366
  with st.spinner("Processing (may take a couple of minutes) ..."):
367
  output = run_model(modes_s,user_input)