Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
bbb728a
1
Parent(s):
3088882
combine triggers
Browse files
app.py
CHANGED
@@ -958,17 +958,12 @@ def main():
|
|
958 |
# Only show charge/spin inputs for OMol task
|
959 |
task_name.input(
|
960 |
lambda x: (
|
961 |
-
gr.Number(visible=True)
|
|
|
|
|
962 |
),
|
963 |
[task_name],
|
964 |
-
total_charge,
|
965 |
-
)
|
966 |
-
task_name.input(
|
967 |
-
lambda x: (
|
968 |
-
gr.Number(visible=True) if x == "OMol" else gr.Number(visible=False)
|
969 |
-
),
|
970 |
-
[task_name],
|
971 |
-
spin_multiplicity,
|
972 |
)
|
973 |
|
974 |
input_structure.change(
|
|
|
958 |
# Only show charge/spin inputs for OMol task
|
959 |
task_name.input(
|
960 |
lambda x: (
|
961 |
+
(gr.Number(visible=True), gr.Number(visible=True))
|
962 |
+
if x == "OMol"
|
963 |
+
else (gr.Number(visible=False), gr.Number(visible=False))
|
964 |
),
|
965 |
[task_name],
|
966 |
+
[total_charge, spin_multiplicity],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
967 |
)
|
968 |
|
969 |
input_structure.change(
|