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 APP Blocked for 400 seconds #8134

Closed
1 task done
mussonero opened this issue Apr 25, 2024 · 2 comments
Closed
1 task done

Gradio APP Blocked for 400 seconds #8134

mussonero opened this issue Apr 25, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@mussonero
Copy link

Describe the bug

Blocking usage of gradio.
When i run the code below i am get blocked for 400 seconds until i can use the App
the App worked perfectly 5 days ago, I think there is something related to some style elements, which do not load on the first launch.
and keep loading in background until the 400 second mark, after which everything works perfectly

Is this some kind of IP address blocking from S3 or something?

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

import gradio as gr

def closest_match(x):
    return x + ": The Definitive Edition"

def Dropdown_list(x):
    new_options =  [*options, x + " Remastered", x + ": The Remake", x + ": Game of the Year Edition", x + " Steelbook Edition"]
    return gr.Dropdown(choices=new_options)


def Recommend_new(x):
  return x + ": Highest Cosine Similarity"

demo = gr.Blocks()

options = ['Placeholder A', 'Placeholder B', 'Placeholder C']
with demo:
    text_input = gr.Textbox(label="Search bar")
    b1 = gr.Button("Match Closest Title")

    text_options = gr.Dropdown(options, label="Top 5 options")
    b2 = gr.Button("Provide Additional options")
    
    new_title = gr.Textbox(label="Here you go!")
    b3 = gr.Button("Recommend a new title")

    b1.click(closest_match, inputs=text_input, outputs=text_options)
    b2.click(Dropdown_list, inputs=text_input, outputs=text_options)
    b3.click(Recommend_new, inputs=text_options, outputs=new_title)
    # text_options.update(interactive=True)


demo.launch(debug=True)

Screenshot

image
image

Logs

No response

System Info

ubuntu 22.04 LTS
python 3.10
gradio latest

Severity

Blocking usage of gradio

@mussonero
Copy link
Author

mussonero commented Apr 27, 2024

now it's gotten worse, more than 7 minutes of blocking

I'm getting these errors in the browser console:

Unchecked runtime.lastError: The message port closed before a response was received.
Unchecked runtime.lastError: The message port closed before a response was received.
Unchecked runtime.lastError: The message port closed before a response was received.
Unchecked runtime.lastError: The message port closed before a response was received.
Unchecked runtime.lastError: The message port closed before a response was received.
css.ts:15 Unable to preload CSS for https://gradio.s3-us-west-2.amazonaws.com/assets/index-aa8d4ca5.css
(anonymous) @ css.ts:15

PS;
I did a fresh new install of Gradio the latest version, same problem

image

image

@mussonero
Copy link
Author

issue solve by it self

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

1 participant