Spaces:
Sleeping
Sleeping
Update ui/contentagentui.py
Browse files- ui/contentagentui.py +3 -4
ui/contentagentui.py
CHANGED
|
@@ -114,15 +114,14 @@ class ContentAgentUI:
|
|
| 114 |
return self.app
|
| 115 |
|
| 116 |
# Optional: Adjust path if needed for hosted environments
|
|
|
|
| 117 |
css_path = os.path.join(os.getcwd(), "ui", "styles.css")
|
| 118 |
-
print("adding css, does it exist?")
|
| 119 |
if ( os.path.exists(css_path)):
|
| 120 |
# Also check if it's readable and has content
|
| 121 |
with open(css_path, 'r') as f:
|
| 122 |
-
|
| 123 |
print(f"CSS file size: {len(content)} characters")
|
| 124 |
-
|
| 125 |
-
css_path = ""
|
| 126 |
|
| 127 |
with gr.Blocks(css=css_path) as demo:
|
| 128 |
# global header (always visible)
|
|
|
|
| 114 |
return self.app
|
| 115 |
|
| 116 |
# Optional: Adjust path if needed for hosted environments
|
| 117 |
+
css_content = ""
|
| 118 |
css_path = os.path.join(os.getcwd(), "ui", "styles.css")
|
|
|
|
| 119 |
if ( os.path.exists(css_path)):
|
| 120 |
# Also check if it's readable and has content
|
| 121 |
with open(css_path, 'r') as f:
|
| 122 |
+
css_content = f.read()
|
| 123 |
print(f"CSS file size: {len(content)} characters")
|
| 124 |
+
|
|
|
|
| 125 |
|
| 126 |
with gr.Blocks(css=css_path) as demo:
|
| 127 |
# global header (always visible)
|