Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
d56c953
1
Parent(s):
12d0e77
only allow buttons if input structure is real
Browse files
app.py
CHANGED
|
@@ -849,6 +849,18 @@ def main():
|
|
| 849 |
spin_multiplicity,
|
| 850 |
)
|
| 851 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 852 |
demo.launch()
|
| 853 |
|
| 854 |
|
|
|
|
| 849 |
spin_multiplicity,
|
| 850 |
)
|
| 851 |
|
| 852 |
+
input_structure.change(
|
| 853 |
+
lambda file: gr.Button(interactive=bool(file)),
|
| 854 |
+
inputs=[input_structure],
|
| 855 |
+
outputs=[optimization_button],
|
| 856 |
+
)
|
| 857 |
+
|
| 858 |
+
input_structure.change(
|
| 859 |
+
lambda file: gr.Button(interactive=bool(file)),
|
| 860 |
+
inputs=[input_structure],
|
| 861 |
+
outputs=[md_button],
|
| 862 |
+
)
|
| 863 |
+
|
| 864 |
demo.launch()
|
| 865 |
|
| 866 |
|