Spaces:
Runtime error
Runtime error
VatsalPatel18
commited on
Commit
•
f0e9ca6
1
Parent(s):
c238491
Model files
Browse files- app.py +2 -2
- data/hnscc.patient.chg.network.pth +3 -0
app.py
CHANGED
@@ -22,11 +22,11 @@ from GraphAnalysis import GraphAnalysis
|
|
22 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
23 |
|
24 |
# Load the autoencoder model
|
25 |
-
autoencoder_config = OmicsConfig.from_pretrained("/
|
26 |
autoencoder_model = MultiOmicsGraphAttentionAutoencoderModel(autoencoder_config).to(device)
|
27 |
|
28 |
# Initialize Attention Extracter
|
29 |
-
graph_data_dict_path = '
|
30 |
extracter = Attention_Extracter(graph_data_dict_path, autoencoder_model.encoder, gpu=(device == "cuda"))
|
31 |
|
32 |
def extract_features():
|
|
|
22 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
23 |
|
24 |
# Load the autoencoder model
|
25 |
+
autoencoder_config = OmicsConfig.from_pretrained("./lc_models/MultiOmicsAutoencoder/trained_autoencoder")
|
26 |
autoencoder_model = MultiOmicsGraphAttentionAutoencoderModel(autoencoder_config).to(device)
|
27 |
|
28 |
# Initialize Attention Extracter
|
29 |
+
graph_data_dict_path = './data/hnscc.patient.chg.network.pth'
|
30 |
extracter = Attention_Extracter(graph_data_dict_path, autoencoder_model.encoder, gpu=(device == "cuda"))
|
31 |
|
32 |
def extract_features():
|
data/hnscc.patient.chg.network.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:01b4465e33695fa8cc042ef305ba4646df4ae35f57a14d10a2c9b36604129e72
|
3 |
+
size 154185872
|