Spaces:
Runtime error
Runtime error
Commit
·
a3f9a3d
1
Parent(s):
446c19d
Update app.py
Browse files
app.py
CHANGED
@@ -13,6 +13,7 @@ from transformers import pipeline as pl
|
|
13 |
import numpy as np
|
14 |
import matplotlib.pyplot as plt
|
15 |
import sys
|
|
|
16 |
|
17 |
print(os.getcwd())
|
18 |
if "/home/user/app/alphafold" not in sys.path:
|
@@ -138,7 +139,8 @@ def update(inp):
|
|
138 |
ax.set_ylabel("predicted LDDT")
|
139 |
ax.set_xlabel("positions")
|
140 |
ax.set_title("pLDDT")
|
141 |
-
|
|
|
142 |
return (
|
143 |
molecule(
|
144 |
f"test_unrelaxed_model_1.pdb",
|
|
|
13 |
import numpy as np
|
14 |
import matplotlib.pyplot as plt
|
15 |
import sys
|
16 |
+
import plotly.graph_objects as go
|
17 |
|
18 |
print(os.getcwd())
|
19 |
if "/home/user/app/alphafold" not in sys.path:
|
|
|
139 |
ax.set_ylabel("predicted LDDT")
|
140 |
ax.set_xlabel("positions")
|
141 |
ax.set_title("pLDDT")
|
142 |
+
|
143 |
+
fig = go.Figure(data=go.Scatter(x=np.arange(len(plddts), y=plddts))
|
144 |
return (
|
145 |
molecule(
|
146 |
f"test_unrelaxed_model_1.pdb",
|