lucapinello commited on
Commit
9267c22
·
1 Parent(s): 3b8619b
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -121,9 +121,11 @@ app = DNADiffusionApp()
121
  def create_demo():
122
  """Create the Gradio demo interface"""
123
 
124
- # CSS to hide backend controls
125
  css = """
126
  #hidden-controls { display: none !important; }
 
 
127
  """
128
 
129
  # JavaScript for handling communication between iframe and Gradio
@@ -216,7 +218,7 @@ def create_demo():
216
  # Main interface - the slot machine in an iframe
217
  # Escape the HTML content for srcdoc
218
  escaped_html = html.escape(SLOT_MACHINE_HTML, quote=True)
219
- iframe_html = f'<iframe srcdoc="{escaped_html}" style="width: 100%; height: 100vh; border: none;"></iframe>'
220
 
221
  html_display = gr.HTML(
222
  iframe_html,
 
121
  def create_demo():
122
  """Create the Gradio demo interface"""
123
 
124
+ # CSS to hide backend controls and prevent scrolling
125
  css = """
126
  #hidden-controls { display: none !important; }
127
+ .gradio-container { overflow: hidden; }
128
+ #dna-frame { overflow: hidden; position: relative; }
129
  """
130
 
131
  # JavaScript for handling communication between iframe and Gradio
 
218
  # Main interface - the slot machine in an iframe
219
  # Escape the HTML content for srcdoc
220
  escaped_html = html.escape(SLOT_MACHINE_HTML, quote=True)
221
+ iframe_html = f'<iframe srcdoc="{escaped_html}" style="width: 100%; height: 800px; border: none; display: block;"></iframe>'
222
 
223
  html_display = gr.HTML(
224
  iframe_html,