Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,16 @@ import tensorflow as tf
|
|
7 |
from tensorflow import keras
|
8 |
|
9 |
# Config
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
NUM_ATOMS = 9 # Maximum number of atoms
|
11 |
ATOM_DIM = 4 + 1 # Number of atom types
|
12 |
BOND_DIM = 4 + 1 # Number of bond types
|
|
|
7 |
from tensorflow import keras
|
8 |
|
9 |
# Config
|
10 |
+
atom_mapping = {
|
11 |
+
"C": 0,
|
12 |
+
0: "C",
|
13 |
+
"N": 1,
|
14 |
+
1: "N",
|
15 |
+
"O": 2,
|
16 |
+
2: "O",
|
17 |
+
"F": 3,
|
18 |
+
3: "F",
|
19 |
+
}
|
20 |
NUM_ATOMS = 9 # Maximum number of atoms
|
21 |
ATOM_DIM = 4 + 1 # Number of atom types
|
22 |
BOND_DIM = 4 + 1 # Number of bond types
|