Spaces:
Running
Running
simonduerr
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -33,13 +33,13 @@ def predict(input_mol, style, contour_level, view_str, chains):
|
|
33 |
|
34 |
html_output = """
|
35 |
|
36 |
-
<button id="copySvgBtn">Copy SVG to Clipboard</button>
|
37 |
-
<button id="copyPngBtn">Copy PNG to Clipboard</button>
|
38 |
|
39 |
<!-- Buttons for Download -->
|
40 |
-
<button id="downloadSvgBtn">Download SVG</button>
|
41 |
-
<button id="downloadPngBtn">Download PNG</button>
|
42 |
-
<script>
|
43 |
function copySvgToClipboard() {
|
44 |
const svgElement = document.getElementById('svgElement');
|
45 |
const svgData = new XMLSerializer().serializeToString(svgElement);
|
|
|
33 |
|
34 |
html_output = """
|
35 |
|
36 |
+
<button id="copySvgBtn" style="padding:4px;border:1px solid gray;margin:3px">Copy SVG to Clipboard</button>
|
37 |
+
<button id="copyPngBtn" style="padding:4px;border:1px solid gray;margin:3px">Copy PNG to Clipboard</button>
|
38 |
|
39 |
<!-- Buttons for Download -->
|
40 |
+
<button id="downloadSvgBtn" style="padding:4px;border:1px solid gray;margin:3px">Download SVG</button>
|
41 |
+
<button id="downloadPngBtn" style="padding:4px;border:1px solid gray;margin:3px">Download PNG</button>
|
42 |
+
<script type="text/javascript">
|
43 |
function copySvgToClipboard() {
|
44 |
const svgElement = document.getElementById('svgElement');
|
45 |
const svgData = new XMLSerializer().serializeToString(svgElement);
|