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 launch does not show public url #5450

Closed
1 task done
sylee96 opened this issue Sep 8, 2023 · 2 comments
Closed
1 task done

Gradio launch does not show public url #5450

sylee96 opened this issue Sep 8, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@sylee96
Copy link

sylee96 commented Sep 8, 2023

Describe the bug

I'm using gradio with the 'share=True' argument in gradio/blocks.launch(), but it seems that a public URL is not being generated. While debugging step by step, I suspect that the issue might be in the 'gradio/tunneling.py' file within the '_start_tunnel' function

if self.proc.stdout is None:
    continue
line = self.proc.stdout.readline()
line = line.decode("utf-8")
if "start proxy success" in line:
    result = re.search("start proxy success: (.+)\n", line)
    if result is None:
        raise ValueError("Could not create share URL")
    else:
        url = result.group(1)

It appears that there might be a problem with the code snippet above. I also noticed that someone suggested downgrading gradio to version 3.9 in another issue, but even after doing so, the issue persists.

Could you please provide guidance on how to resolve this issue? Your assistance would be greatly appreciated.

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

import gradio as gr

def greet(name):
    return "Hello " + name + "!"

demo = gr.Interface(fn=greet, inputs="text", outputs="text")

demo.launch(share=True)

Screenshot

image

Logs

Launching Web UI with arguments: --xformers --listen --share
Loading weights [5493a0ec49] from /data/stable-diffusion-webui/models/Stable-diffusion/stable-diffusion-models/abyssorangemix3AOM3_aom3a1b.safetensors
Creating model from config: /data/stable-diffusion-webui/configs/v1-inference.yaml
Running on local URL:  http://0.0.0.0:7860
Applying attention optimization: xformers... done.
Model loaded in 6.9s (load weights from disk: 0.9s, create model: 1.0s, apply weights to model: 4.6s, calculate empty prompt: 0.3s).

System Info

gradio version = 3.41.2

Severity

Blocking usage of gradio

@sylee96 sylee96 added the bug Something isn't working label Sep 8, 2023
@admalekar
Copy link

I am not able to reproduce the issue. Are you using automatic1111 stable diffusion webui?
I am getting public link in automatic1111 stable diffusion webui and with the reproduction steps as well.
Can you try to update the webui to version 1.6?

@abidlabs
Copy link
Member

abidlabs commented Sep 25, 2023

Hi @sylee96 if it's a core gradio issue (affecting all Gradio apps) and not just Automatic1111, can you try the suggestions in this isuse? #3677

Please respond in that issue if you have further questions, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants