Spaces:
Sleeping
Sleeping
Erva Ulusoy
commited on
Commit
·
6248f35
1
Parent(s):
e52ccff
setup.sh must stay
Browse files- ProtHGT_app.py +6 -6
- requirements.txt +0 -2
ProtHGT_app.py
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
import os
|
| 2 |
import streamlit as st
|
| 3 |
|
| 4 |
-
|
| 5 |
-
#
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
|
| 11 |
import streamlit.components.v1 as components
|
| 12 |
import os
|
|
|
|
| 1 |
import os
|
| 2 |
import streamlit as st
|
| 3 |
|
| 4 |
+
with st.spinner("Please wait while we prepare the environment. This may take a few minutes only on the first run..."):
|
| 5 |
+
# Run setup script if not already executed
|
| 6 |
+
if not os.path.exists(".setup_done"):
|
| 7 |
+
os.system("bash setup.sh")
|
| 8 |
+
with open(".setup_done", "w") as f:
|
| 9 |
+
f.write("done")
|
| 10 |
|
| 11 |
import streamlit.components.v1 as components
|
| 12 |
import os
|
requirements.txt
CHANGED
|
@@ -1,7 +1,5 @@
|
|
| 1 |
numpy
|
| 2 |
pandas
|
| 3 |
torch==1.12.1
|
| 4 |
-
torch_sparse==0.6.18
|
| 5 |
-
torch_scatter==2.1.2
|
| 6 |
torch_geometric==2.2.0
|
| 7 |
gdown
|
|
|
|
| 1 |
numpy
|
| 2 |
pandas
|
| 3 |
torch==1.12.1
|
|
|
|
|
|
|
| 4 |
torch_geometric==2.2.0
|
| 5 |
gdown
|