Spaces:
Paused
Paused
osanseviero
commited on
Commit
•
1d3b518
1
Parent(s):
4659bdc
Update app.py
Browse files
app.py
CHANGED
@@ -104,8 +104,10 @@ def update(sequence=DEFAULT_SEQ):
|
|
104 |
response = requests.post('https://api.esmatlas.com/foldSequence/v1/pdb/', headers=headers, data=sequence)
|
105 |
name = sequence[:3] + sequence[-3:]
|
106 |
pdb_string = response.content.decode('utf-8')
|
107 |
-
|
108 |
-
|
|
|
|
|
109 |
|
110 |
return molecule(tmp.name), tmp.name
|
111 |
|
|
|
104 |
response = requests.post('https://api.esmatlas.com/foldSequence/v1/pdb/', headers=headers, data=sequence)
|
105 |
name = sequence[:3] + sequence[-3:]
|
106 |
pdb_string = response.content.decode('utf-8')
|
107 |
+
|
108 |
+
tmp = tempfile.NamedTemporaryFile()
|
109 |
+
with open(tmp.name, "w") as f:
|
110 |
+
f.write(pdb_string)
|
111 |
|
112 |
return molecule(tmp.name), tmp.name
|
113 |
|