Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ with col1:
|
|
26 |
with col2:
|
27 |
|
28 |
st.link_button("π**DATABASE**", r"https://docs.google.com/spreadsheets/d/1YOEIg0nMTSPkAOr8wkqxQRLuUhys3-J0I-KPEpmzPLw")
|
29 |
-
st.markdown('πIf you want to update the database, click the button.')
|
30 |
if text_search:
|
31 |
st.write(df_search)
|
32 |
st.download_button( "β¬οΈ Download edited files as .csv", df_search.to_csv(), "df_search.csv", use_container_width=True)
|
@@ -35,10 +35,10 @@ edited_df.to_csv(url)
|
|
35 |
st.download_button(
|
36 |
"β¬οΈ Download edited files as .csv", edited_df.to_csv(), "edited_df.csv", use_container_width=True
|
37 |
)
|
38 |
-
st.header("π**Molecule**")
|
39 |
molecule = st.text_input(label="*",label_visibility="hidden")
|
40 |
smile_code = st_ketcher(molecule)
|
41 |
-
st.subheader(f"β¨**
|
42 |
try :
|
43 |
P = RF.main( str(smile_code ) )
|
44 |
st.subheader(f"β‘**PCE predicted by RF**: {P}")
|
|
|
26 |
with col2:
|
27 |
|
28 |
st.link_button("π**DATABASE**", r"https://docs.google.com/spreadsheets/d/1YOEIg0nMTSPkAOr8wkqxQRLuUhys3-J0I-KPEpmzPLw")
|
29 |
+
st.markdown('πIf you want to update the origin database, click the button.')
|
30 |
if text_search:
|
31 |
st.write(df_search)
|
32 |
st.download_button( "β¬οΈ Download edited files as .csv", df_search.to_csv(), "df_search.csv", use_container_width=True)
|
|
|
35 |
st.download_button(
|
36 |
"β¬οΈ Download edited files as .csv", edited_df.to_csv(), "edited_df.csv", use_container_width=True
|
37 |
)
|
38 |
+
st.header("π**Input the SMILES of Molecule**")
|
39 |
molecule = st.text_input(label="*",label_visibility="hidden")
|
40 |
smile_code = st_ketcher(molecule)
|
41 |
+
st.subheader(f"β¨**The SMILES of edited molecules**: {smile_code}")
|
42 |
try :
|
43 |
P = RF.main( str(smile_code ) )
|
44 |
st.subheader(f"β‘**PCE predicted by RF**: {P}")
|