shanevcantwell commited on
Commit
3b41fb8
·
1 Parent(s): 347151f

Fixed gradio theme issue

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -134,7 +134,7 @@ examples = [
134
  ]
135
 
136
  # Create Gradio interface
137
- with gr.Blocks(theme=gr.themes.Base()) as demo:
138
  gr.Markdown("# COGSEC Analyzer: Cognitive Security Nutrition Facts")
139
  gr.Markdown("How manipulative is your chatbot? Analyze AI responses for cognitive manipulation patterns.")
140
 
@@ -201,4 +201,4 @@ with gr.Blocks(theme=gr.themes.Base()) as demo:
201
  """)
202
 
203
  if __name__ == "__main__":
204
- demo.launch()
 
134
  ]
135
 
136
  # Create Gradio interface
137
+ with gr.Blocks() as demo:
138
  gr.Markdown("# COGSEC Analyzer: Cognitive Security Nutrition Facts")
139
  gr.Markdown("How manipulative is your chatbot? Analyze AI responses for cognitive manipulation patterns.")
140
 
 
201
  """)
202
 
203
  if __name__ == "__main__":
204
+ demo.launch(theme=gr.themes.Base())