Saleh commited on
Commit
a92da2f
·
1 Parent(s): 1aedb3e

Revert Gradio 6.x config: move theme/css back to Blocks for 5.x compat

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -938,6 +938,8 @@ def build_ui():
938
 
939
  with gr.Blocks(
940
  title="AI Research Paper Analyst",
 
 
941
  ) as app:
942
 
943
  gr.Markdown(
@@ -1051,7 +1053,4 @@ if __name__ == "__main__":
1051
 
1052
  # Launch with environment variables handling port/host
1053
  ui = build_ui()
1054
- ui.launch(
1055
- theme=gr.themes.Default(primary_hue="blue", secondary_hue="slate"),
1056
- css=".main-header {text-align: center; margin-bottom: 2rem;} .upload-area {min-height: 150px;}"
1057
- )
 
938
 
939
  with gr.Blocks(
940
  title="AI Research Paper Analyst",
941
+ theme=gr.themes.Default(primary_hue="blue", secondary_hue="slate"),
942
+ css=".main-header {text-align: center; margin-bottom: 2rem;} .upload-area {min-height: 150px;}"
943
  ) as app:
944
 
945
  gr.Markdown(
 
1053
 
1054
  # Launch with environment variables handling port/host
1055
  ui = build_ui()
1056
+ ui.launch()