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

Update to allow app to run offline if internet connection isn’t available #10700

Closed
1 task done
tdtrumble opened this issue May 25, 2023 · 3 comments
Closed
1 task done
Labels
enhancement New feature or request

Comments

@tdtrumble
Copy link

tdtrumble commented May 25, 2023

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What would your feature do ?

Detect if internet connection is unavailable and skip processes requiring internet connection so that the app can run offline if requirements are already downloaded.

I had my internet go out today and discovered that this won’t run offline even though everything is already installed.

I found 2 causes:

  1. Calling pip to download requirements. Easily skipped by bypassing a single line of code. Some extensions do this too but auto1111 doesn't exit if those fail.

  2. Gradio. This one is more complicated. Newer versions of gradio call out to get fonts and other things. They are aware of the issue and seem like they are trying to resolve the online dependency but who knows how long it will take.
    Gradio Interface does not run locally without internet connection  gradio-app/gradio#1450

There are a few options:

2.a) Downgrade to a lower version that didn’t require connectivity, it’s mentioned in thread linked above

2.b) monkey patch it?

2.c) Consider using https://github.com/junchen1992/gradio-offline, forked and tracking against main and hacked to remove online requirement. I think he’s just maintaining it until Gradio gets their crap together

Proposed workflow

  1. Disconnect internet
  2. Attempt to run Auto1111
  3. Be disappointed

Additional information

No response

@tdtrumble tdtrumble added the enhancement New feature or request label May 25, 2023
@missionfloyd
Copy link
Collaborator

#10324

@w-e-w
Copy link
Collaborator

w-e-w commented May 25, 2023

if all requirements are satisfied webui launches offline without issues
tested in all current versions 1.2.1 1.3.0-RC dev

@tdtrumble
Copy link
Author

Closed, I was still on 1.2.0

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

No branches or pull requests

3 participants