simonduerr commited on
Commit
3c6b27e
1 Parent(s): e8e9336

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
3
 
4
 
5
  def update(smiles):
6
- x = (
7
  """<!DOCTYPE html>
8
  <html>
9
  <head>
@@ -24,7 +24,6 @@ def update(smiles):
24
  </html>
25
  """
26
  )
27
-
28
  return f"""<iframe style="width: 800px; height: 800px" 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
@@ -32,7 +31,7 @@ def update(smiles):
32
  allowpaymentrequest="" frameborder="0" srcdoc='{x}'></iframe>"""
33
 
34
  with gr.Blocks() as demo:
35
- gr.Markdown("Smiles viewer")
36
  with gr.Row():
37
  inp = gr.Textbox(label="SMILES string", placeholder="CCCC")
38
  out = gr.HTML()
 
3
 
4
 
5
  def update(smiles):
6
+ x = (
7
  """<!DOCTYPE html>
8
  <html>
9
  <head>
 
24
  </html>
25
  """
26
  )
 
27
  return f"""<iframe style="width: 800px; height: 800px" name="result" allow="midi; geolocation; microphone; camera;
28
  display-capture; encrypted-media;" sandbox="allow-modals allow-forms
29
  allow-scripts allow-same-origin allow-popups
 
31
  allowpaymentrequest="" frameborder="0" srcdoc='{x}'></iframe>"""
32
 
33
  with gr.Blocks() as demo:
34
+ gr.Markdown("# Smiles viewer")
35
  with gr.Row():
36
  inp = gr.Textbox(label="SMILES string", placeholder="CCCC")
37
  out = gr.HTML()