Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,10 +17,6 @@ from agents.prompts import load_prompts
|
|
| 17 |
|
| 18 |
from ContentGradio import ContentAgentUI
|
| 19 |
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
def initialize_agent(endpoint_uri: str):
|
| 25 |
|
| 26 |
# Load prompts
|
|
@@ -38,7 +34,7 @@ def initialize_agent(endpoint_uri: str):
|
|
| 38 |
|
| 39 |
return CodeAgent(
|
| 40 |
model=model,
|
| 41 |
-
tools=combined_tools
|
| 42 |
max_steps=6,
|
| 43 |
verbosity_level=3,
|
| 44 |
name="content_agent",
|
|
@@ -51,8 +47,6 @@ def initialize_agent(endpoint_uri: str):
|
|
| 51 |
def main():
|
| 52 |
# Load endpoint and check health
|
| 53 |
|
| 54 |
-
|
| 55 |
-
|
| 56 |
# Prechecks
|
| 57 |
endpoint_uri = load_huggingface_model() # Get the URI for the endpoint
|
| 58 |
is_healthy, status_info = check_model_endpoint(endpoint_uri) # Test the endpoint
|
|
|
|
| 17 |
|
| 18 |
from ContentGradio import ContentAgentUI
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
def initialize_agent(endpoint_uri: str):
|
| 21 |
|
| 22 |
# Load prompts
|
|
|
|
| 34 |
|
| 35 |
return CodeAgent(
|
| 36 |
model=model,
|
| 37 |
+
tools=combined_tools,
|
| 38 |
max_steps=6,
|
| 39 |
verbosity_level=3,
|
| 40 |
name="content_agent",
|
|
|
|
| 47 |
def main():
|
| 48 |
# Load endpoint and check health
|
| 49 |
|
|
|
|
|
|
|
| 50 |
# Prechecks
|
| 51 |
endpoint_uri = load_huggingface_model() # Get the URI for the endpoint
|
| 52 |
is_healthy, status_info = check_model_endpoint(endpoint_uri) # Test the endpoint
|