simonduerr commited on
Commit
662073f
·
1 Parent(s): 623fc97

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -12,9 +12,11 @@ def update(smiles):
12
  </head>
13
 
14
  <body>
15
- <img data-smiles=""""+smiles+"""" />
16
-
17
-
 
 
18
  <script type="text/javascript" src="https://unpkg.com/[email protected]/dist/smiles-drawer.min.js"></script>
19
  <script>
20
  SmiDrawer.apply();
@@ -23,7 +25,7 @@ def update(smiles):
23
  </html>
24
  """
25
  )
26
- return f"""<iframe style="width: 800px; height: 800px" name="result" allow="midi; geolocation; microphone; camera;
27
  display-capture; encrypted-media;" sandbox="allow-modals allow-forms
28
  allow-scripts allow-same-origin allow-popups
29
  allow-top-navigation-by-user-activation allow-downloads" allowfullscreen=""
 
12
  </head>
13
 
14
  <body>
15
+ <img data-smiles="
16
+ """+
17
+ smiles+
18
+ """
19
+ "
20
  <script type="text/javascript" src="https://unpkg.com/[email protected]/dist/smiles-drawer.min.js"></script>
21
  <script>
22
  SmiDrawer.apply();
 
25
  </html>
26
  """
27
  )
28
+ return f"""<iframe style="width: 400px; height: 400px" name="result" allow="midi; geolocation; microphone; camera;
29
  display-capture; encrypted-media;" sandbox="allow-modals allow-forms
30
  allow-scripts allow-same-origin allow-popups
31
  allow-top-navigation-by-user-activation allow-downloads" allowfullscreen=""