Commit 70ee586
authored
Replace iframe with external link to Hugging Face model page (#1203)
Embedding the GPT-2 model page from Hugging Face using an <iframe> was not working because the site sends security headers (X-Frame-Options: DENY / SAMEORIGIN) that prevent the page from being displayed inside external frames.
As a result, the iframe rendered as a blank frame and produced a browser console error:
Refused to display 'https://huggingface.co/' in a frame because it set 'X-Frame-Options' to 'deny'.
This change removes the iframe and replaces it with a direct external link to the model page:
https://huggingface.co/openai-community/gpt2
This ensures users can still access the model page without encountering embedding errors.1 parent 5739145 commit 70ee586
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
87 | 85 | | |
88 | 86 | | |
89 | 87 | | |
| |||
0 commit comments