Spaces:
Running
Running
Erva Ulusoy
commited on
Commit
·
e696f95
1
Parent(s):
67e6ec1
another requirements fix
Browse files- ProtHGT_app.py +8 -0
- setup.sh +3 -0
ProtHGT_app.py
CHANGED
@@ -1,3 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
import streamlit.components.v1 as components
|
3 |
import os
|
|
|
1 |
+
import os
|
2 |
+
|
3 |
+
# Run setup script if not already executed
|
4 |
+
if not os.path.exists(".setup_done"):
|
5 |
+
os.system("bash setup.sh")
|
6 |
+
with open(".setup_done", "w") as f:
|
7 |
+
f.write("done")
|
8 |
+
|
9 |
import streamlit as st
|
10 |
import streamlit.components.v1 as components
|
11 |
import os
|
setup.sh
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
pip install torch==1.13.1
|
3 |
+
pip install torch_sparse -f https://data.pyg.org/whl/torch-1.13.1+cpu.html
|