Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,6 +53,15 @@ def main():
|
|
| 53 |
# We want to create a basic GUI calling the ContentAgentUI..
|
| 54 |
# The default flow should be to show the "Wake Endpoint" button
|
| 55 |
# If the end point is ready, don't show it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
# Initialize and run the agent
|
| 57 |
#agent = initialize_agent(endpoint_uri)
|
| 58 |
# Create an instance of the ContentAgentUI class
|
|
|
|
| 53 |
# We want to create a basic GUI calling the ContentAgentUI..
|
| 54 |
# The default flow should be to show the "Wake Endpoint" button
|
| 55 |
# If the end point is ready, don't show it.
|
| 56 |
+
ui = ContentAgentUI(
|
| 57 |
+
endpoint_uri=uri,
|
| 58 |
+
is_healthy=ok,
|
| 59 |
+
health_message=msg,
|
| 60 |
+
agent_initializer=initialize_agent,
|
| 61 |
+
)
|
| 62 |
+
ui.launch()
|
| 63 |
+
|
| 64 |
+
|
| 65 |
# Initialize and run the agent
|
| 66 |
#agent = initialize_agent(endpoint_uri)
|
| 67 |
# Create an instance of the ContentAgentUI class
|