Spaces:
Sleeping

byte-vortex commited on
Commit
9d6e9b4
·
verified ·
1 Parent(s): 11849d6

Deploy Myco from CI

Browse files
Files changed (1) hide show
  1. ui/interface.py +14 -0
ui/interface.py CHANGED
@@ -176,6 +176,20 @@ def cute_mushroom_garden_html() -> str:
176
  </body>
177
  </html>
178
  """
 
 
 
 
 
 
 
 
 
 
 
 
 
 
179
 
180
 
181
  def render_shroom_tab():
 
176
  </body>
177
  </html>
178
  """
179
+
180
+ # Safely escape the HTML
181
+ escaped_srcdoc = html.escape(iframe_content)
182
+
183
+ # Return a clean, borderless container
184
+ return f'''
185
+ <div style="width: 100%; height: 500px; border-radius: 16px; overflow: hidden; border: 4px solid #f8c8dc; box-shadow: 0 8px 32px rgba(0,0,0,0.15);">
186
+ <iframe
187
+ srcdoc="{escaped_srcdoc}"
188
+ style="width: 100%; height: 100%; border: none;"
189
+ scrolling="no">
190
+ </iframe>
191
+ </div>
192
+ '''
193
 
194
 
195
  def render_shroom_tab():