Spaces:
Sleeping
Sleeping
Update ui/contentagentui.py
Browse files- ui/contentagentui.py +4 -1
ui/contentagentui.py
CHANGED
|
@@ -103,8 +103,11 @@ class ContentAgentUI:
|
|
| 103 |
return self.app
|
| 104 |
|
| 105 |
examples = self._load_examples()
|
|
|
|
|
|
|
|
|
|
| 106 |
|
| 107 |
-
with gr.Blocks() as demo:
|
| 108 |
# global header (always visible)
|
| 109 |
gr.Markdown("# Content Agent")
|
| 110 |
|
|
|
|
| 103 |
return self.app
|
| 104 |
|
| 105 |
examples = self._load_examples()
|
| 106 |
+
|
| 107 |
+
# Optional: Adjust path if needed for hosted environments
|
| 108 |
+
css_path = os.path.join(os.getcwd(), "ui", "styles.css")
|
| 109 |
|
| 110 |
+
with gr.Blocks(css=css_path if os.path.exists(css_path) else None) as demo:
|
| 111 |
# global header (always visible)
|
| 112 |
gr.Markdown("# Content Agent")
|
| 113 |
|