Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
be64eab
1
Parent(s):
ba1c6a9
small mistake in logic
Browse files- app.py +2 -6
- simulation_scripts.py +6 -2
app.py
CHANGED
@@ -781,17 +781,13 @@ def main():
|
|
781 |
with gr.Column():
|
782 |
input_structure.render()
|
783 |
|
|
|
|
|
784 |
structure_validation = gr.Markdown()
|
785 |
|
786 |
login_button = gr.LoginButton(size="large")
|
787 |
|
788 |
-
gr.Markdown(
|
789 |
-
"""
|
790 |
-
To use your own structures, you need access to the [gated UMA model repository](https://huggingface.co/facebook/UMA) and you need to login with the button above. See the final tab above '3. Try UMA with your own structures!' for more details and debugging steps!
|
791 |
|
792 |
-
Note that uploaded structure will be stored by this demo to analyze model usage and identify domains where model accuracy can be improved.
|
793 |
-
"""
|
794 |
-
)
|
795 |
with gr.Column(scale=3):
|
796 |
input_visualization.render()
|
797 |
|
|
|
781 |
with gr.Column():
|
782 |
input_structure.render()
|
783 |
|
784 |
+
gr.Markdown('**Warnings:**')
|
785 |
+
|
786 |
structure_validation = gr.Markdown()
|
787 |
|
788 |
login_button = gr.LoginButton(size="large")
|
789 |
|
|
|
|
|
|
|
790 |
|
|
|
|
|
|
|
791 |
with gr.Column(scale=3):
|
792 |
input_visualization.render()
|
793 |
|
simulation_scripts.py
CHANGED
@@ -79,12 +79,16 @@ def validate_ase_atoms_and_login(structure_file, login_button_value):
|
|
79 |
f"Structure file contains {len(atoms)}, which is more than {MAX_ATOMS} atoms. Please use a smaller structure for this demo, or run this on a local machine!",
|
80 |
)
|
81 |
elif (hash_file(structure_file) not in EXAMPLE_FILE_HASHES) and (
|
82 |
-
"
|
83 |
):
|
84 |
return (
|
85 |
gr.Button(interactive=False),
|
86 |
gr.Button(interactive=False),
|
87 |
-
"
|
|
|
|
|
|
|
|
|
88 |
)
|
89 |
else:
|
90 |
return (
|
|
|
79 |
f"Structure file contains {len(atoms)}, which is more than {MAX_ATOMS} atoms. Please use a smaller structure for this demo, or run this on a local machine!",
|
80 |
)
|
81 |
elif (hash_file(structure_file) not in EXAMPLE_FILE_HASHES) and (
|
82 |
+
"Logout" not in login_button_value
|
83 |
):
|
84 |
return (
|
85 |
gr.Button(interactive=False),
|
86 |
gr.Button(interactive=False),
|
87 |
+
"""
|
88 |
+
To use your own structures, you need access to the [gated UMA model repository](https://huggingface.co/facebook/UMA) and you need to login with the button above. See the final tab above '3. Try UMA with your own structures!' for more details and debugging steps!
|
89 |
+
|
90 |
+
Note that uploaded structure will be stored by this demo to analyze model usage and identify domains where model accuracy can be improved.
|
91 |
+
""",
|
92 |
)
|
93 |
else:
|
94 |
return (
|