i_vorobyev
commited on
Commit
·
e862e69
1
Parent(s):
12fcf9e
add download button
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def molecule(input_pdb):
|
|
62 |
)
|
63 |
dw_script = """
|
64 |
<script type="text/javascript" >
|
65 |
-
function download(filename, text)
|
66 |
var element = document.createElement('a');
|
67 |
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));
|
68 |
element.setAttribute('download', filename);
|
@@ -73,7 +73,7 @@ def molecule(input_pdb):
|
|
73 |
element.click();
|
74 |
|
75 |
document.body.removeChild(element);
|
76 |
-
|
77 |
</script>
|
78 |
"""
|
79 |
|
|
|
62 |
)
|
63 |
dw_script = """
|
64 |
<script type="text/javascript" >
|
65 |
+
function download(filename, text) {
|
66 |
var element = document.createElement('a');
|
67 |
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));
|
68 |
element.setAttribute('download', filename);
|
|
|
73 |
element.click();
|
74 |
|
75 |
document.body.removeChild(element);
|
76 |
+
}
|
77 |
</script>
|
78 |
"""
|
79 |
|