yetessam commited on
Commit
6b08176
·
verified ·
1 Parent(s): 03319eb

Update ui/contentagentui.py

Browse files
Files changed (1) hide show
  1. ui/contentagentui.py +19 -0
ui/contentagentui.py CHANGED
@@ -68,6 +68,25 @@ class ContentAgentUI:
68
 
69
 
70
  def _get_example(self):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  example_root = os.path.join(os.path.dirname(__file__), "examples")
72
  examples = []
73
 
 
68
 
69
 
70
  def _get_example(self):
71
+
72
+
73
+ custom_css = """
74
+ .hello-world-text {
75
+ font-family: 'Arial', sans-serif;
76
+ font-size: 3em;
77
+ color: #4CAF50; /* Green color */
78
+ text-align: center;
79
+ padding: 20px;
80
+ border: 2px solid #4CAF50;
81
+ border-radius: 10px;
82
+ background-color: #E8F5E9; /* Light green background */
83
+ }
84
+ """
85
+
86
+ with gr.Blocks(css=custom_css) as demo:
87
+ # Create a Text component and assign it a custom class
88
+ gr.Markdown("<div class='hello-world-text'>Hello, World!</div>")
89
+
90
  example_root = os.path.join(os.path.dirname(__file__), "examples")
91
  examples = []
92