Spaces:
Sleeping
Sleeping
Update ui/contentagentui.py
Browse files- ui/contentagentui.py +8 -9
ui/contentagentui.py
CHANGED
|
@@ -19,7 +19,7 @@ class ContentAgentUI:
|
|
| 19 |
self.is_healthy = bool(is_healthy)
|
| 20 |
self.health_message = health_message or ""
|
| 21 |
self.agent_initializer = agent_initializer # callable: (uri) -> CodeAgent
|
| 22 |
-
self.
|
| 23 |
self.compute = compute or ""
|
| 24 |
|
| 25 |
# set in build()
|
|
@@ -53,15 +53,14 @@ class ContentAgentUI:
|
|
| 53 |
|
| 54 |
""")
|
| 55 |
|
| 56 |
-
# gr.Markdown ("""
|
| 57 |
-
# Technology:
|
| 58 |
-
# - App is running `deepseek-ai/DeepSeek-R1-Distill-Qwen-32B` text generation model.
|
| 59 |
-
# - Agent uses Intel's Polite Guard NLP library tool
|
| 60 |
-
# - Compute: GCP · Nvidia L4 · 4x GPUs · 96 GB
|
| 61 |
-
# - Content Agents's LLM runs on-demand rather than using resources for 24 hrs/day, 7 days a week
|
| 62 |
-
#
|
| 63 |
-
# """)
|
| 64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
|
| 66 |
def _get_css(self) -> str | None:
|
| 67 |
css_path = os.path.join(os.getcwd(), "ui", "styles.css")
|
|
|
|
| 19 |
self.is_healthy = bool(is_healthy)
|
| 20 |
self.health_message = health_message or ""
|
| 21 |
self.agent_initializer = agent_initializer # callable: (uri) -> CodeAgent
|
| 22 |
+
self.agent_type = agent_type or ""
|
| 23 |
self.compute = compute or ""
|
| 24 |
|
| 25 |
# set in build()
|
|
|
|
| 53 |
|
| 54 |
""")
|
| 55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
+
gr.Markdown(f"""
|
| 58 |
+
Technology:
|
| 59 |
+
- App is running `{self.agent_type}` text generation model.
|
| 60 |
+
- Agent uses Intel's Polite Guard NLP library tool
|
| 61 |
+
- Compute: {self.compute}
|
| 62 |
+
- Content Agent's LLM runs on-demand rather than using resources for 24 hrs/day, 7 days a week
|
| 63 |
+
""")
|
| 64 |
|
| 65 |
def _get_css(self) -> str | None:
|
| 66 |
css_path = os.path.join(os.getcwd(), "ui", "styles.css")
|