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

run on the android #2138

Closed
alen978 opened this issue Feb 2, 2024 · 5 comments
Closed

run on the android #2138

alen978 opened this issue Feb 2, 2024 · 5 comments
Labels
question Further information is requested

Comments

@alen978
Copy link

alen978 commented Feb 2, 2024

hi has installed it on the win10, but how to run it on the android? thanks

@AsaTyr2018
Copy link

Since its aGradio App. It need to be started with the "--listen" Argument. It changes the Listen IP from localhost to 0.0.0.0 (Listen to all IP Interfaces) Then you can run it on Android / other Devices in the network via the Computer IP + port.

But i didn´t found any points to add this args. The WebUI was modified =/

Maby someone can help here?

@AsaTyr2018
Copy link

hi has installed it on the win10, but how to run it on the android? thanks

I found what you need. Just edit the run.bat (or run_anime.bar/Run_realistic) and add --listen to the start command.
Example:
.\python_embeded\python.exe -s Fooocus\entry_with_update.py --listen

That way the Gradio will listen to all IP´s and not just to 127.0.0.1.

Example. your Computer IP is 192.168.1.35 (run cmd -> ipconfig to find your IP)
Then you can reach it via http://192.168.1.35:7865/ from your android device.

Be aware that the access is not restricted to you only. Everyone in your Local Network will be able to access it. (not Internet. Unless you open the ports)
Still be carefull with this.

Hope this helps you =)

@mashb1t
Copy link
Collaborator

mashb1t commented Feb 3, 2024

@alen978 Please add --listen to your entrypoint.
If you wish to have authentication enabled you can apply the changes of PR #2127.

@mashb1t mashb1t closed this as completed Feb 3, 2024
@mashb1t mashb1t added the question Further information is requested label Feb 3, 2024
@AYuvraj7
Copy link

Why closed

@IPv6
Copy link

IPv6 commented Oct 26, 2024

Why closed

You need to run Fooocus on normal system with GPU with share/listen parameter.
Then you can open Fooocus web page in android browser. Gradio should be fine on it, imho

It`s the only option for "run on android" currently, afaik

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

No branches or pull requests

5 participants