simonduerr commited on
Commit
3ef21a4
1 Parent(s): 0d5f433

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -9,10 +9,14 @@ def update(smiles):
9
  <head>
10
  <meta charset="utf-8">
11
  <meta name="viewport" content="width=device-width, initial-scale=1">
 
 
 
 
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,7 +25,7 @@ def update(smiles):
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=""
 
9
  <head>
10
  <meta charset="utf-8">
11
  <meta name="viewport" content="width=device-width, initial-scale=1">
12
+ <link
13
+ href="https://fonts.googleapis.com/css?family=Droid+Sans:400,700"
14
+ rel="stylesheet"
15
+ />
16
  </head>
17
 
18
  <body>
19
+ <svg style="height:400;width:100%" data-smiles="{smiles}" />
20
  <script type="text/javascript" src="https://unpkg.com/smiles-drawer@2.0.1/dist/smiles-drawer.min.js"></script>
21
  <script>
22
  SmiDrawer.apply();
 
25
  </html>
26
  """
27
  )
28
+ return f"""<iframe style="width: 100%; height: 400px;margin:0 auto" 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=""