Spaces:
Paused
Paused
osanseviero
commited on
Commit
•
4659bdc
1
Parent(s):
0b0210f
Update app.py
Browse files
app.py
CHANGED
@@ -104,7 +104,7 @@ 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 |
-
with tempfile.TemporaryFile(mode = "r+
|
108 |
tmp.write(pdb_string)
|
109 |
|
110 |
return molecule(tmp.name), tmp.name
|
|
|
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 |
+
with tempfile.TemporaryFile(mode = "r+w") as tmp:
|
108 |
tmp.write(pdb_string)
|
109 |
|
110 |
return molecule(tmp.name), tmp.name
|