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

Web component #10264

Open
1 task done
Hamed744 opened this issue Dec 30, 2024 · 5 comments
Open
1 task done

Web component #10264

Hamed744 opened this issue Dec 30, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@Hamed744
Copy link

Describe the bug

Hello, good day. This Gradio library link is not accessible in our region. I contacted the Ministry of Communications, and they said that there is no issue on their end and this link is not filtered from our side. Because of this, we cannot use this link for AI models on the website. Is there a solution to this problem? We have to turn on a VPN, but the page does not open for us without it. For example, I wanted to use the following code, but the page doesn't open:

<script type="module" src="https://gradio.s3-us-west-2.amazonaws.com/3.15.0/gradio.js" ></script>


Only the Gradio library has this issue; the websites huggingface.co, gradio.app, and amazonaws.com open for us without any problems. The issue is that this link https://gradio.s3-us-west-2.amazonaws.com/ does not open and we have to turn on a VPN, which is very inconvenient.

country of Iran
thank you

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

<script type="module" src="https://gradio.s3-us-west-2.amazonaws.com/3.15.0/gradio.js" ></script>

Screenshot

No response

Logs

No response

System Info

https://gradio.s3-us-west-2.amazonaws.com/

Severity

I can work around it

@Hamed744 Hamed744 added the bug Something isn't working label Dec 30, 2024
@abidlabs
Copy link
Member

cc @aliabd could you take a look?

@aliabd
Copy link
Collaborator

aliabd commented Dec 30, 2024

@Hamed744 are you able to access any other AWS s3 bucket without VPN?

@Hamed744
Copy link
Author

Hamed744 commented Dec 31, 2024

@aliabd
I tested the following links without a VPN, and all of them opened successfully:
https://code.jquery.com/jquery-3.6.0.min.js
https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css
https://aws-solutions-assets.s3.amazonaws.com/test.txt

However, the issue is specifically with the Gradio library. The following links do not open without a VPN:
https://gradio.s3-us-west-2.amazonaws.com/3.15.0/gradio.js
https://gradio.s3-us-west-2.amazonaws.com/3.47.1/gradio.js
https://gradio.s3-us-west-2.amazonaws.com/3.50.2/gradio.js

https://gradio.s3-us-west-2.amazonaws.com

In fact, none of the Gradio library versions are accessible without using a VPN. It seems there is an issue specifically related to the Gradio library files hosted on the S3 bucket.

@aliabd
Copy link
Collaborator

aliabd commented Jan 9, 2025

@Hamed744 Unfortunately, this seems to be an issue with AWS and not our bucket specifically:

https://stackoverflow.com/questions/72037703/assets-in-aws-s3-bucket-blocked-in-iran

I'm not sure what this is: https://aws-solutions-assets.s3.amazonaws.com/test.txt It wouldn't open for me.

@Hamed744
Copy link
Author

Hamed744 commented Jan 9, 2025

@aliabd The Gradio libraries do not open for me, but the AWS website does open. This issue arises because of embedding the application within a web page to use some AI tools. If there is no solution to resolve the Gradio issue in our region, is it possible to use an iframe without problems? I raised this issue because some of the Hugging Face spaces do not work when run in an iframe.
What is the reason for the application not functioning in an iframe for some of the spaces? For example:

<iframe src="https://hkchengrex-mmaudio.hf.space" frameborder="0" width="850" height="450"></iframe> When we use this in a webpage, the application does not work. Is there a solution to run it inside the iframe? Since I can't use Web components because the Gradio library is not available in my region, is there a way to run that application using an iframe?

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

3 participants