Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{'error': {'code': '404', 'message': 'Resource not found'}} when running lavague as script.py #632

Open
AnkitPandey22 opened this issue Dec 26, 2024 · 0 comments

Comments

@AnkitPandey22
Copy link

ERROR - Error while running the agent: Error code: 404 - {'error': {'code': '404', 'message': 'Resource not found'}}

Lavague is not working in python script but it is working in jupyter notebook for the same code.
while running the code as a script it show the resource not found error.

Expected behavior
the script must be executed properly.

Screenshots
image

versions details:
Name: lavague
Version: 1.1.19
Summary: automation code generation from text instructions


Name: llama-index-embeddings-langchain
Version: 0.1.2
Summary: llama-index embeddings langchain integration

code:

embeddings1 = HuggingFaceEmbeddings(model_name = "sentence-transformers/all-MiniLM-L6-v2",
model_kwargs = {'device': 'cpu'},
encode_kwargs = {'normalize_embeddings': False})

llm = AzureOpenAI(
api_key=key,
model=model_name,
azure_endpoint=endpoint,
deployment_name=deployment)

mm_llm = AzureOpenAIMultiModal(
api_key=key,
model=model_name,
azure_endpoint=endpoint,
deployment_name=deployment
)

selenium_driver = SeleniumDriver()
world_model = WorldModel(mm_llm=mm_llm)
action_engine = ActionEngine(llm=llm, embedding=embeddings1, driver=selenium_driver)

agent = WebAgent(world_model, action_engine)

agent.get("file:///D:/IVA/Govind/abcc.html")

data = """

  • Name: john carter
  • age: 32
  • phone: 555-113-4567
  • skill: advance
  • country: India
    """

instruction = "Use the necessary data provided to fill in the form."
agent.run(instruction, user_data=data)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant