Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def initialize_agent(endpoint_uri: str):
|
|
| 37 |
verbosity_level=3,
|
| 38 |
name="content_agent",
|
| 39 |
description="Evaluates whether text is polite or impolite.",
|
| 40 |
-
prompt_templates=custom_prompts, # override prompts
|
| 41 |
#instructions = custom_prompts, # adds additional instructions instead of overriding default prompt
|
| 42 |
additional_authorized_imports=["pytz"]
|
| 43 |
)
|
|
@@ -54,7 +54,8 @@ def main():
|
|
| 54 |
ok, msg = is_endpoint_healthy(uri)
|
| 55 |
if not ok:
|
| 56 |
print(f"Endpoint not ready: {msg}")
|
| 57 |
-
|
|
|
|
| 58 |
# We want to create a basic GUI calling the ContentAgentUI..
|
| 59 |
# The default flow should be to show the "Wake Endpoint" button
|
| 60 |
# If the end point is ready, don't show it.
|
|
|
|
| 37 |
verbosity_level=3,
|
| 38 |
name="content_agent",
|
| 39 |
description="Evaluates whether text is polite or impolite.",
|
| 40 |
+
#prompt_templates=custom_prompts, # override prompts
|
| 41 |
#instructions = custom_prompts, # adds additional instructions instead of overriding default prompt
|
| 42 |
additional_authorized_imports=["pytz"]
|
| 43 |
)
|
|
|
|
| 54 |
ok, msg = is_endpoint_healthy(uri)
|
| 55 |
if not ok:
|
| 56 |
print(f"Endpoint not ready: {msg}")
|
| 57 |
+
print(f"uri: {uri}")
|
| 58 |
+
|
| 59 |
# We want to create a basic GUI calling the ContentAgentUI..
|
| 60 |
# The default flow should be to show the "Wake Endpoint" button
|
| 61 |
# If the end point is ready, don't show it.
|