boobalanit commited on
Commit
4e77a09
·
1 Parent(s): a2edc68

fix: pass css to Blocks for ZeroGPU wrapper compatibility

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -263,7 +263,7 @@ custom_css = """
263
  }
264
  """
265
 
266
- with gr.Blocks(title="SplitSafe — Audio ML Dataset Leakage Auditor") as demo:
267
  gr.HTML(
268
  """
269
  <div style="background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px; padding: 32px; margin-bottom: 24px; text-align: center; box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);">
@@ -412,4 +412,4 @@ with gr.Blocks(title="SplitSafe — Audio ML Dataset Leakage Auditor") as demo:
412
  )
413
 
414
  if __name__ == "__main__":
415
- demo.launch(css=custom_css)
 
263
  }
264
  """
265
 
266
+ with gr.Blocks(title="SplitSafe — Audio ML Dataset Leakage Auditor", css=custom_css) as demo:
267
  gr.HTML(
268
  """
269
  <div style="background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px; padding: 32px; margin-bottom: 24px; text-align: center; box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);">
 
412
  )
413
 
414
  if __name__ == "__main__":
415
+ demo.launch()