Closed triffalin closed 4 months ago
try to m=paste the link in a chrome browser . if it still doesn't work you close the vscode then redo the process.. but only use chrome. I'm on Mac m2
with small changes instead of agency.demo_gradio(server_name="0.0.0.0") I changed to agency.demo_gradio(height=400), now it works and runs automatically on localhost - http://127.0.0.1:7860, instead of 0.0.0.0:7860, this works for me:
from agency_swarm import Agency
from BrowsingAgent import BrowsingAgent
from Devid import Devid
from PlannerAgent import PlannerAgent
import os
from dotenv import load_dotenv
load_dotenv()
planner = PlannerAgent()
devid = Devid()
browsingAgent = BrowsingAgent()
agency = Agency([planner, devid, browsingAgent, [planner, devid],
[planner, browsingAgent],
[devid, browsingAgent]],
shared_instructions='./agency_manifesto.md')
if __name__ == '__main__':
agency.demo_gradio(height=400)
in VSC terminal everything looks good: " seluser@187fbed20efe:/app/CodeSolutionAgency$ python agency.py Files folder '/app/CodeSolutionAgency/PlannerAgent/files' is not a directory. Skipping... Schemas folder path is not a directory. Skipping... /app/CodeSolutionAgency/PlannerAgent/schemas Files folder '/app/CodeSolutionAgency/Devid/files' is not a directory. Skipping... Schemas folder path is not a directory. Skipping... /app/CodeSolutionAgency/Devid/schemas Files folder '/app/CodeSolutionAgency/BrowsingAgent/files' is not a directory. Skipping... Schemas folder path is not a directory. Skipping... /app/CodeSolutionAgency/BrowsingAgent/schemas Running on local URL: http://0.0.0.0:7860
To create a public link, set
![Screenshot 2024-04-21 211740](https://github.com/VRSEN/agency-swarm-lab/assets/110256756/8294e58e-4190-410a-9bca-a3b4e5f9f42c)
share=True
inlaunch()
.", but the page cannot be accessed in the browser.