Spaces:
Paused
Paused
fix: move theme/css to Blocks for Gradio 4.x
Browse files
app.py
CHANGED
|
@@ -135,7 +135,7 @@ THEME = gr.themes.Base(
|
|
| 135 |
def create_interface():
|
| 136 |
"""Create the Gradio interface."""
|
| 137 |
|
| 138 |
-
with gr.Blocks(title="Cordon", fill_width=True) as demo:
|
| 139 |
|
| 140 |
# Header
|
| 141 |
gr.HTML("""
|
|
@@ -290,4 +290,4 @@ result = analyzer.analyze_file(Path("system.log"))
|
|
| 290 |
|
| 291 |
if __name__ == "__main__":
|
| 292 |
demo = create_interface()
|
| 293 |
-
demo.launch(
|
|
|
|
| 135 |
def create_interface():
|
| 136 |
"""Create the Gradio interface."""
|
| 137 |
|
| 138 |
+
with gr.Blocks(title="Cordon", fill_width=True, theme=THEME, css=CUSTOM_CSS) as demo:
|
| 139 |
|
| 140 |
# Header
|
| 141 |
gr.HTML("""
|
|
|
|
| 290 |
|
| 291 |
if __name__ == "__main__":
|
| 292 |
demo = create_interface()
|
| 293 |
+
demo.launch()
|