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

It starts normally, but there is no screen when I open it. #10274

Closed
1 task done
Super1Windcloud opened this issue Jan 1, 2025 · 1 comment
Closed
1 task done

It starts normally, but there is no screen when I open it. #10274

Super1Windcloud opened this issue Jan 1, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@Super1Windcloud
Copy link

Describe the bug

图片

Have you searched existing issues? πŸ”Ž

  • I have searched and found no existing issues

Reproduction

def create_ui():
with gr.Blocks() as demo:
gr.Markdown("# GAN ε›Ύεƒη”Ÿζˆε™¨")
with gr.Tabs():
# DCGAN 选鑹卑
with gr.Tab("DCGAN"):
gr.Markdown("## DCGAN εŠ¨ζΌ«ε›Ύεƒη”Ÿζˆε™¨")
with gr.Row():
with gr.Column():
dcgan_button = gr.Button("η”ŸζˆεŠ¨ζΌ«ε›Ύεƒ")
with gr.Column():
dcgan_output = gr.Image(label="η”Ÿζˆηš„εŠ¨ζΌ«ε›Ύεƒ")
dcgan_button.click(fn=dcgan_generate, outputs=dcgan_output)

        # StyleGAN 选鑹卑
        with gr.Tab("StyleGAN"):
            gr.Markdown("## StyleGAN ε›Ύεƒη”Ÿζˆε™¨")
            with gr.Row():
                with gr.Column():
                    stylegan_button = gr.Button("η”Ÿζˆε›Ύεƒ")
                with gr.Column():
                    stylegan_output = gr.Image(label="η”Ÿζˆηš„ε›Ύεƒ")
            stylegan_button.click(fn=generate_multiple_images, outputs=stylegan_output)

        # WGAN 选鑹卑
        with gr.Tab("WGAN"):
            gr.Markdown("## WGAN ε›Ύεƒη”Ÿζˆε™¨")
            with gr.Row():
                with gr.Column():
                    wgan_button = gr.Button("η”Ÿζˆε›Ύεƒ")
                with gr.Column():
                    wgan_output = gr.Image(label="η”Ÿζˆηš„ε›Ύεƒ")
            wgan_button.click(fn=wgan_generate, outputs=wgan_output)

        # WGANP 选鑹卑
        with gr.Tab("WGANP"):
            gr.Markdown("## WGANP ε›Ύεƒη”Ÿζˆε™¨")
            with gr.Row():
                with gr.Column():
                    wganp_button = gr.Button("η”Ÿζˆε›Ύεƒ")
                with gr.Column():
                    wganp_output = gr.Image(label="η”Ÿζˆηš„ε›Ύεƒ")
            wganp_button.click(fn=wganp_generate, outputs=wganp_output)

return demo

启动 Gradio 应用

if name == "main":
demo = create_ui()
demo.launch( share=True ,debug=True )

Screenshot

图片

Logs

.

System Info

└─$  gradio environment 
Gradio Environment Information:
------------------------------
Operating System: Windows
gradio version: 5.9.1
gradio_client version: 1.5.2

Severity

I can work around it

@Super1Windcloud Super1Windcloud added the bug Something isn't working label Jan 1, 2025
@abidlabs
Copy link
Member

abidlabs commented Jan 1, 2025

Going to close this as there have been many similar issues around the share link problems. Please look at the existing issues to see if any of those solutions resolve the issue. If you are still facing issues related to share links, please use this issue to report: #3677

@abidlabs abidlabs closed this as not planned Won't fix, can't repro, duplicate, stale Jan 1, 2025
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

2 participants