VRSEN / agency-swarm-lab

MIT License
522 stars 238 forks source link

This site can’t be reached #16

Closed triffalin closed 4 months ago

triffalin commented 4 months ago

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 share=True in launch().", but the page cannot be accessed in the browser. Screenshot 2024-04-21 211732 Screenshot 2024-04-21 211740

newjxmaster commented 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

triffalin commented 4 months ago

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)