Spaces:
Sleeping
Sleeping
Update ui/contentagentui.py
Browse files- ui/contentagentui.py +5 -6
ui/contentagentui.py
CHANGED
|
@@ -72,8 +72,7 @@ class ContentAgentUI:
|
|
| 72 |
|
| 73 |
custom_css = """
|
| 74 |
.hello-world-text {
|
| 75 |
-
font-
|
| 76 |
-
font-size: 3em;
|
| 77 |
color: #4CAF50; /* Green color */
|
| 78 |
text-align: center;
|
| 79 |
padding: 20px;
|
|
@@ -85,9 +84,10 @@ class ContentAgentUI:
|
|
| 85 |
|
| 86 |
with gr.Blocks(css=custom_css) as demo:
|
| 87 |
# Create a Text component and assign it a custom class
|
| 88 |
-
gr.
|
| 89 |
|
| 90 |
example_root = os.path.join(os.path.dirname(__file__), "examples")
|
|
|
|
| 91 |
examples = []
|
| 92 |
|
| 93 |
if os.path.exists(example_root):
|
|
@@ -141,8 +141,7 @@ class ContentAgentUI:
|
|
| 141 |
|
| 142 |
# Control panel (shown first; may auto-hide on load)
|
| 143 |
with gr.Group(visible=True, elem_id= "control_panel" ) as self.control_panel:
|
| 144 |
-
|
| 145 |
-
#gr.Markdown("Testing ")
|
| 146 |
self.status_box = gr.Textbox(
|
| 147 |
label="Status",
|
| 148 |
value=self._initial_status_text(),
|
|
@@ -170,7 +169,7 @@ class ContentAgentUI:
|
|
| 170 |
|
| 171 |
# Chat controls
|
| 172 |
self.agent_state = gr.State(None)
|
| 173 |
-
self.prompt = gr.Textbox(label=strInput, placeholder=strPlaceholder)
|
| 174 |
self.reply = gr.Textbox(label=strOutput, interactive=False, lines=12, max_lines=20)
|
| 175 |
submit_btn = gr.Button(strSubmit)
|
| 176 |
|
|
|
|
| 72 |
|
| 73 |
custom_css = """
|
| 74 |
.hello-world-text {
|
| 75 |
+
font-size: 6em;
|
|
|
|
| 76 |
color: #4CAF50; /* Green color */
|
| 77 |
text-align: center;
|
| 78 |
padding: 20px;
|
|
|
|
| 84 |
|
| 85 |
with gr.Blocks(css=custom_css) as demo:
|
| 86 |
# Create a Text component and assign it a custom class
|
| 87 |
+
gr.HTML("<div class='hello-world-text'>Hello, World!</div>")
|
| 88 |
|
| 89 |
example_root = os.path.join(os.path.dirname(__file__), "examples")
|
| 90 |
+
print(example_root)
|
| 91 |
examples = []
|
| 92 |
|
| 93 |
if os.path.exists(example_root):
|
|
|
|
| 141 |
|
| 142 |
# Control panel (shown first; may auto-hide on load)
|
| 143 |
with gr.Group(visible=True, elem_id= "control_panel" ) as self.control_panel:
|
| 144 |
+
|
|
|
|
| 145 |
self.status_box = gr.Textbox(
|
| 146 |
label="Status",
|
| 147 |
value=self._initial_status_text(),
|
|
|
|
| 169 |
|
| 170 |
# Chat controls
|
| 171 |
self.agent_state = gr.State(None)
|
| 172 |
+
self.prompt = gr.Textbox(label=strInput, placeholder=strPlaceholder, lines=10)
|
| 173 |
self.reply = gr.Textbox(label=strOutput, interactive=False, lines=12, max_lines=20)
|
| 174 |
submit_btn = gr.Button(strSubmit)
|
| 175 |
|