Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,12 +25,7 @@ def load_page(page_name):
|
|
| 25 |
if page_name == "Home":
|
| 26 |
home.show()
|
| 27 |
elif page_name == "Predictions":
|
| 28 |
-
|
| 29 |
-
smiles = st.text_input("Enter SMILES for polymer prediction:")
|
| 30 |
-
if smiles: # Only call prediction.show() if SMILES is provided
|
| 31 |
-
prediction.show(smiles) # Pass SMILES to the prediction function
|
| 32 |
-
else:
|
| 33 |
-
st.write("Please enter a valid SMILES string.")
|
| 34 |
elif page_name == "About":
|
| 35 |
about.show()
|
| 36 |
elif page_name == "Contact":
|
|
|
|
| 25 |
if page_name == "Home":
|
| 26 |
home.show()
|
| 27 |
elif page_name == "Predictions":
|
| 28 |
+
prediction.show()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
elif page_name == "About":
|
| 30 |
about.show()
|
| 31 |
elif page_name == "Contact":
|