Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ class MyDataset(Dataset):
|
|
51 |
def __init__(self,dict_data) -> None:
|
52 |
super(MyDataset,self).__init__()
|
53 |
self.data=dict_data
|
54 |
-
self.structure=pdb_structure(dict_data['
|
55 |
def __getitem__(self, index):
|
56 |
return self.data['text'][index], self.structure[index]
|
57 |
def __len__(self):
|
|
|
51 |
def __init__(self,dict_data) -> None:
|
52 |
super(MyDataset,self).__init__()
|
53 |
self.data=dict_data
|
54 |
+
self.structure=pdb_structure(dict_data['text'])
|
55 |
def __getitem__(self, index):
|
56 |
return self.data['text'][index], self.structure[index]
|
57 |
def __len__(self):
|