Spaces:
Build error
Build error
simonduerr
commited on
Commit
·
ee33c53
1
Parent(s):
90cc273
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
|
|
4 |
|
5 |
def update(smiles):
|
6 |
x = (
|
7 |
-
"""<!DOCTYPE html>
|
8 |
<html>
|
9 |
<head>
|
10 |
<meta charset="utf-8">
|
@@ -12,9 +12,7 @@ def update(smiles):
|
|
12 |
</head>
|
13 |
|
14 |
<body>
|
15 |
-
<img data-smiles=""
|
16 |
-
smiles+
|
17 |
-
"""" />
|
18 |
<script type="text/javascript" src="https://unpkg.com/smiles-drawer@2.0.1/dist/smiles-drawer.min.js"></script>
|
19 |
<script>
|
20 |
SmiDrawer.apply();
|
|
|
4 |
|
5 |
def update(smiles):
|
6 |
x = (
|
7 |
+
f"""<!DOCTYPE html>
|
8 |
<html>
|
9 |
<head>
|
10 |
<meta charset="utf-8">
|
|
|
12 |
</head>
|
13 |
|
14 |
<body>
|
15 |
+
<img 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();
|