FramePack Portable: Gradio not launching

#5
by VirtualWish - opened

I've tried your portable version of FramePack and once it finished download all the models and was ready it showed the URL to run gradio:

But when using that URL I get this on my browser:

DDPM.Subagent.User_cNjLoIKfz5.png

No 0.0.0.0
Try 127.0.0.0.1/localhost:7860

That one works!

How do I edit it on the portable so it will show:
http://127.0.0.1:7860

Instead of the current one as I mentioned above, it's just easy to middle click to open in the browser instead of typing it.

Open demo_gradio.py (in framepack folder)
Go to end file, u see this:
block.launch(
server_name=args.server,
server_port=args.port,
share=args.share,
inbrowser=args.inbrowser,
)
Just edit to:
block.launch(
server_name=args.server,
server_port=args.port,
share=args.share,
inbrowser=True,
)

On CMD it still says: Running on local URL: http://0.0.0.0:7860
But who cares because it WORKS LIKE A CHARM! ❤️

I like how it AUTOMATICALLY opens a tab on my browser!
You should do that on the other Gradio Portable versions, it's awesome!

When i build a portable version i disable inbrowser flag, since it's in my way for debugging

Sign up or log in to comment