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

Has anyone seen this css issue? #8640

Closed
1 task done
jloveric opened this issue Jun 26, 2024 · 2 comments
Closed
1 task done

Has anyone seen this css issue? #8640

jloveric opened this issue Jun 26, 2024 · 2 comments
Labels
bug Something isn't working pending clarification

Comments

@jloveric
Copy link

jloveric commented Jun 26, 2024

Describe the bug

This is the error I see in the console of the gradio app. I don't seem to be able to wget this css file either (bad request)

css.ts:28 Unable to preload CSS for https://gradio.s3-us-west-2.amazonaws.com/assets/index-DjKMUUyt.css

I'm running this off of a cluster in china so I assume these issues are entirely related to that setup. I'd at least like to be able to grab the css so that I can add it to my app. The error does seem to block the rest of the app from running. Running locally things do work fine though. I cannot run with share=False (even though if I run with share=True I can access it through localhost). So my question is has anyone seen this and if not how can I get the css.

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

I'm able to reproduce the issue with this example, but like I said, it runs fine outside the cluster

import gradio as gr

def run(x) :
    print('running!')

iface = gr.Interface(
    fn=run,
    inputs=[
        gr.Number(label="x", value=1),
    ],
    outputs=[
    ],
    title="Something",
    description="Else",
)

if __name__ == "__main__":
    iface.launch(share=True)

Screenshot

Screenshot 2024-06-26 14:51:41

Logs

No response

System Info

gradio = "^4.37.1"
ubuntu cluster in china

Severity

I can work around it

@jloveric jloveric added the bug Something isn't working label Jun 26, 2024
@abidlabs
Copy link
Member

Hi @jloveric I also cannot access the css file (running from US) so it seems like that is not the issue. I think it has something to do with the environment that you are running gradio in. Can you try running gradio in a reproducible environment e.g. google colab? https://colab.google/

@jloveric
Copy link
Author

Something related to my environment. I'm using streamlit for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending clarification
Projects
None yet
Development

No branches or pull requests

2 participants