Skip to content

Problems with app.py #64

@SoftologyPro

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions