Spaces:
Paused
Paused
Commit
·
b5a6c06
1
Parent(s):
c12b0ec
Update app.
Browse files
app.py
CHANGED
@@ -360,8 +360,8 @@ def main():
|
|
360 |
|
361 |
|
362 |
if submit:
|
363 |
-
if
|
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)
|