yetessam commited on
Commit
a9c1355
·
verified ·
1 Parent(s): 6c1d870

Update ui/contentagentui.py

Browse files
Files changed (1) hide show
  1. ui/contentagentui.py +1 -29
ui/contentagentui.py CHANGED
@@ -62,18 +62,6 @@ class ContentAgentUI:
62
 
63
  """)
64
 
65
- def _get_css(self) -> str | None:
66
- css_path = os.path.join(os.getcwd(), "ui", "styles.css")
67
- if os.path.exists(css_path):
68
- try:
69
- with open(css_path, "r", encoding="utf-8") as f:
70
- return f.read()
71
- except Exception:
72
- return None
73
- else:
74
- return None
75
-
76
- return css_path
77
 
78
  def _initial_status_text(self) -> str:
79
  # neutral; on_load will set real status and maybe auto-init
@@ -117,23 +105,7 @@ class ContentAgentUI:
117
 
118
  examples = self._load_examples()
119
 
120
- #css = self._get_css()
121
- #with gr.Blocks(css=css) as demo:
122
-
123
- custom_theme = gr.themes.Base(
124
- primary_hue="pink",
125
- secondary_hue="orange",
126
- neutral_hue="gray",
127
- ).set(
128
-
129
- #radius_size="md", # modest rounding
130
- #spacing_size="md", # reasonable spacing scale
131
- #button_primary_background_fill="linear-gradient(90deg, #ff69b4, #ff7f50)",
132
- #button_primary_text_color="white",
133
-
134
- )
135
-
136
- with gr.Blocks(theme=custom_theme) as demo:
137
  # global header (always visible)
138
  gr.Markdown("# Content Agent")
139
 
 
62
 
63
  """)
64
 
 
 
 
 
 
 
 
 
 
 
 
 
65
 
66
  def _initial_status_text(self) -> str:
67
  # neutral; on_load will set real status and maybe auto-init
 
105
 
106
  examples = self._load_examples()
107
 
108
+ with gr.Blocks() as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  # global header (always visible)
110
  gr.Markdown("# Content Agent")
111