Spaces:
Sleeping
Sleeping
Erva Ulusoy
commited on
Commit
·
3e01b83
1
Parent(s):
0711e04
updated requirements
Browse files- ProtHGT_app.py +21 -21
- requirements.txt +4 -1
ProtHGT_app.py
CHANGED
|
@@ -6,27 +6,27 @@ import pandas as pd
|
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
-
with st.spinner("Initializing the environment... This may take up to 10 minutes at the start of each session."):
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
# ❌ Remove the info message after initialization is complete
|
| 29 |
-
loading_placeholder.empty()
|
| 30 |
|
| 31 |
|
| 32 |
from run_prothgt_app import *
|
|
|
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
+
# with st.spinner("Initializing the environment... This may take up to 10 minutes at the start of each session."):
|
| 10 |
+
# # Create a temporary placeholder for the message
|
| 11 |
+
# loading_placeholder = st.empty()
|
| 12 |
+
|
| 13 |
+
# # Show the info message only while the spinner is active
|
| 14 |
+
# loading_placeholder.info("""
|
| 15 |
+
# **Note:** This initialization is required at the start of each session.
|
| 16 |
+
# Once the app is ready, you can run multiple predictions without re-initializing by clicking the **Reset** button in the sidebar.
|
| 17 |
+
# """)
|
| 18 |
+
|
| 19 |
+
# # Run setup script if not already executed
|
| 20 |
+
# if not os.path.exists(".setup_done"):
|
| 21 |
+
# start_time = time.time()
|
| 22 |
+
# os.system("bash setup.sh")
|
| 23 |
+
# end_time = time.time()
|
| 24 |
+
# print(f"Environment prepared in {end_time - start_time:.2f} seconds")
|
| 25 |
+
# with open(".setup_done", "w") as f:
|
| 26 |
+
# f.write("done")
|
| 27 |
+
|
| 28 |
+
# # ❌ Remove the info message after initialization is complete
|
| 29 |
+
# loading_placeholder.empty()
|
| 30 |
|
| 31 |
|
| 32 |
from run_prothgt_app import *
|
requirements.txt
CHANGED
|
@@ -2,4 +2,7 @@ numpy
|
|
| 2 |
pandas
|
| 3 |
torch==1.12.1
|
| 4 |
torch_geometric==2.2.0
|
| 5 |
-
gdown
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
pandas
|
| 3 |
torch==1.12.1
|
| 4 |
torch_geometric==2.2.0
|
| 5 |
+
gdown
|
| 6 |
+
--extra-index-url https://data.pyg.org/whl/torch-1.12.0+cpu.html
|
| 7 |
+
torch_sparse
|
| 8 |
+
torch_scatter
|