Skip to content

Problems with app.py #64

Description

@SoftologyPro

For security line 214 should default to False
demo.launch(share=False)
but, if set to False app.py fails with
Exception: Couldn't start the app because 'http://127.0.0.1:7860/gradio_api/startup-events' failed (code 500). Check your network or proxy settings to ensure localhost is accessible.

Both
show_share_button=True,
need to be remarked for app.py to start

Line 117 should be
cache_examples=True,

But even with those edits, I get as far as opening the GUI.
I click one of the examples, it shows "Unable to play video" top right, then I get the same command line exception
Exception: Couldn't start the app because 'http://127.0.0.1:7860/gradio_api/startup-events' failed (code 500). Check your network or proxy settings to ensure localhost is accessible.

This is on Windows if it matters.

Can you also provide a requirements.txt so we do not have to use uv?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions