Spaces:
Build error
Build error
Commit
·
0d5f433
1
Parent(s):
8ec6bbe
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ def update(smiles):
|
|
| 12 |
</head>
|
| 13 |
|
| 14 |
<body>
|
| 15 |
-
<svg data-smiles="{smiles}" />
|
| 16 |
<script type="text/javascript" src="https://unpkg.com/smiles-drawer@2.0.1/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: 100%; min-height:
|
| 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 style="height:100%;width:100%" data-smiles="{smiles}" />
|
| 16 |
<script type="text/javascript" src="https://unpkg.com/smiles-drawer@2.0.1/dist/smiles-drawer.min.js"></script>
|
| 17 |
<script>
|
| 18 |
SmiDrawer.apply();
|
|
|
|
| 21 |
</html>
|
| 22 |
"""
|
| 23 |
)
|
| 24 |
+
return f"""<iframe style="width: 100%; min-height: 300px;margin:0 auto" 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=""
|