gradio
gradio copied to clipboard
Gradio APP Blocked for 400 seconds
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? 🔎
- [X] 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
Logs
No response
System Info
ubuntu 22.04 LTS
python 3.10
gradio latest
Severity
Blocking usage of gradio
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
issue solve by it self