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

Gradio Demo "Connection errored out" Issue #628

Open
hi0001234d opened this issue Dec 9, 2024 · 0 comments
Open

Gradio Demo "Connection errored out" Issue #628

hi0001234d opened this issue Dec 9, 2024 · 0 comments

Comments

@hi0001234d
Copy link

hi0001234d commented Dec 9, 2024

Describe the bug
When running the Gradio demo provided by Lavague's example script, it worked and completed the quicktour of PEFT, but the URL provided by gradio demo session when launched (http://127.0.0.1:7860/) fails to function correctly, and I encounter the error "Connection errored out." I followed a suggestion from another issue to use the "URL" tab and retry, but the issue persists.

To Reproduce
Steps to reproduce the behavior:

Use the provided example script (shown below).
Run the script, which launches a Gradio demo.
Open the URL provided by the demo (e.g., http://127.0.0.1:7860/).
See the error "Connection errored out."

Here is the exact example script used:
from lavague.core import WorldModel, ActionEngine
from lavague.core.agents import WebAgent
from lavague.drivers.selenium import SeleniumDriver

selenium_driver = SeleniumDriver(headless=False)
world_model = WorldModel()
action_engine = ActionEngine(selenium_driver)
agent = WebAgent(world_model, action_engine)
agent.get("https://huggingface.co/docs")
agent.run("Go on the quicktour of PEFT")
agent.demo("Go on the quicktour of PEFT")

Expected behavior
The demo should work as expected, allowing interaction via the Gradio interface.

Screenshots
Screenshot from 2024-12-09 10-59-22

Attached is the screenshot of the error "Connection errored out."

Additional Information
Python version: 3.10
Operating System: Ubuntu (latest version)
Lavague branch: Latest main branch
I have already reviewed the issue list and followed a similar suggestion from another issue to click on the "URL" tab and retry, but this did not resolve the problem.

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