retvq commited on
Commit
21dbca6
·
verified ·
1 Parent(s): a23f94d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -109,7 +109,8 @@ theme = gr.themes.Soft(
109
  text_size="lg"
110
  )
111
 
112
- with gr.Blocks(theme=theme, css=custom_css, title="AI Exam Gen") as demo:
 
113
 
114
  with gr.Column(elem_classes="container"):
115
  # Header
@@ -178,4 +179,5 @@ with gr.Blocks(theme=theme, css=custom_css, title="AI Exam Gen") as demo:
178
  )
179
 
180
  if __name__ == "__main__":
181
- demo.launch()
 
 
109
  text_size="lg"
110
  )
111
 
112
+ # UPDATED: theme and css removed from here
113
+ with gr.Blocks(title="AI Exam Gen") as demo:
114
 
115
  with gr.Column(elem_classes="container"):
116
  # Header
 
179
  )
180
 
181
  if __name__ == "__main__":
182
+ # UPDATED: theme and css moved here for Gradio 6 compatibility
183
+ demo.launch(theme=theme, css=custom_css)