Spaces:
Build error
Build error
Commit
·
e4ce8c2
1
Parent(s):
ee33c53
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def update(smiles):
|
|
12 |
</head>
|
13 |
|
14 |
<body>
|
15 |
-
<
|
16 |
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/smiles-drawer.min.js"></script>
|
17 |
<script>
|
18 |
SmiDrawer.apply();
|
@@ -21,7 +21,7 @@ def update(smiles):
|
|
21 |
</html>
|
22 |
"""
|
23 |
)
|
24 |
-
return f"""<iframe style="width:
|
25 |
display-capture; encrypted-media;" sandbox="allow-modals allow-forms
|
26 |
allow-scripts allow-same-origin allow-popups
|
27 |
allow-top-navigation-by-user-activation allow-downloads" allowfullscreen=""
|
|
|
12 |
</head>
|
13 |
|
14 |
<body>
|
15 |
+
<svg data-smiles="{smiles}" />
|
16 |
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/smiles-drawer.min.js"></script>
|
17 |
<script>
|
18 |
SmiDrawer.apply();
|
|
|
21 |
</html>
|
22 |
"""
|
23 |
)
|
24 |
+
return f"""<iframe style="width: 600px; height: 600px" name="result" allow="midi; geolocation; microphone; camera;
|
25 |
display-capture; encrypted-media;" sandbox="allow-modals allow-forms
|
26 |
allow-scripts allow-same-origin allow-popups
|
27 |
allow-top-navigation-by-user-activation allow-downloads" allowfullscreen=""
|