Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -65,5 +65,8 @@ if type(mol) == None:
|
|
65 |
scores.append(None)
|
66 |
output += scores
|
67 |
output = [input_compound] + output
|
68 |
-
|
69 |
-
|
|
|
|
|
|
|
|
65 |
scores.append(None)
|
66 |
output += scores
|
67 |
output = [input_compound] + output
|
68 |
+
try:
|
69 |
+
output_df = pd.DataFrame(np.array(output).reshape(1, -1), columns=['input'] + [f'{i}th' for i in range(CFG.num_beams)] + ['valid compound'] + [f'{i}th score' for i in range(CFG.num_beams)] + ['valid compound score'])
|
70 |
+
st.table(output_df)
|
71 |
+
except:
|
72 |
+
pass
|