Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ builder.add_conditional_edges(
|
|
55 |
)
|
56 |
builder.add_edge("tools","assistant")
|
57 |
|
58 |
-
gaia_agent = builder.compile()
|
59 |
|
60 |
def run_and_submit_all(profile: gr.OAuthProfile | None):
|
61 |
"""
|
@@ -73,7 +73,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
73 |
|
74 |
# 1. Instantiate Agent (modify this part to create your agent)
|
75 |
try:
|
76 |
-
agent =
|
77 |
except Exception as e:
|
78 |
print(f"Error instantiating agent: {e}")
|
79 |
return f"Error initializing agent: {e}", None
|
|
|
55 |
)
|
56 |
builder.add_edge("tools","assistant")
|
57 |
|
58 |
+
gaia_agent = builder.compile(share=True)
|
59 |
|
60 |
def run_and_submit_all(profile: gr.OAuthProfile | None):
|
61 |
"""
|
|
|
73 |
|
74 |
# 1. Instantiate Agent (modify this part to create your agent)
|
75 |
try:
|
76 |
+
agent = gaia_agent
|
77 |
except Exception as e:
|
78 |
print(f"Error instantiating agent: {e}")
|
79 |
return f"Error initializing agent: {e}", None
|