yetessam commited on
Commit
0ad14e4
·
verified ·
1 Parent(s): 84c1a96

Update ui/contentagentui.py

Browse files
Files changed (1) hide show
  1. ui/contentagentui.py +1 -19
ui/contentagentui.py CHANGED
@@ -69,22 +69,6 @@ class ContentAgentUI:
69
 
70
  def _get_example(self):
71
 
72
-
73
- custom_css = """
74
- .hello-world-text {
75
- font-size: 6em;
76
- color: #4CAF50; /* Green color */
77
- text-align: center;
78
- padding: 20px;
79
- border: 2px solid #4CAF50;
80
- border-radius: 10px;
81
- background-color: #E8F5E9; /* Light green background */
82
- }
83
- """
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)
@@ -115,9 +99,7 @@ class ContentAgentUI:
115
 
116
 
117
  @staticmethod
118
- def _call_agent(self, text: str, agent) -> str:
119
-
120
- #def _call_agent(text: str, agent) -> str:
121
  try:
122
  if agent is None:
123
  return "Content Agent's LLM is sleeping and will need to be started. Click 'Start Agent'."
 
69
 
70
  def _get_example(self):
71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
 
73
  example_root = os.path.join(os.path.dirname(__file__), "examples")
74
  print(example_root)
 
99
 
100
 
101
  @staticmethod
102
+ def _call_agent(text: str, agent) -> str:
 
 
103
  try:
104
  if agent is None:
105
  return "Content Agent's LLM is sleeping and will need to be started. Click 'Start Agent'."