Spaces:
Paused
Paused
osanseviero
commited on
Commit
•
0b0210f
1
Parent(s):
b6f1140
Update app.py
Browse files
app.py
CHANGED
@@ -103,9 +103,8 @@ def update(sequence=DEFAULT_SEQ):
|
|
103 |
|
104 |
response = requests.post('https://api.esmatlas.com/foldSequence/v1/pdb/', headers=headers, data=sequence)
|
105 |
name = sequence[:3] + sequence[-3:]
|
106 |
-
pdb_filename = "test.pdb"
|
107 |
pdb_string = response.content.decode('utf-8')
|
108 |
-
with tempfile.TemporaryFile(mode = "
|
109 |
tmp.write(pdb_string)
|
110 |
|
111 |
return molecule(tmp.name), tmp.name
|
|
|
103 |
|
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+b") as tmp:
|
108 |
tmp.write(pdb_string)
|
109 |
|
110 |
return molecule(tmp.name), tmp.name
|