Commit 447f470
authored
feat: sync url for huggingface embeddings (#1547)
## Description
Closes #1337
Added support for HuggingFace embedding by implementing URL parameter synchronization between parent and child windows. When the application is embedded in HuggingFace, it now emits location changes to the parent window, allowing proper URL state management.
## Related Issue and Pull requests
## Type of Change
- [x] New feature
## Checklist
- [x] I have tested this does not break current pipelines / runs functionality
- [x] I have tested the changes on staging
## Test Instructions
1. [Screen Recording 2025-12-12 at 2.08.44 PM.mov <span class="graphite__hidden">(uploaded via Graphite)</span> <img class="graphite__hidden" src="https://app.graphite.com/user-attachments/thumbnails/58ca40ef-b24d-41e4-974b-ef0bebd89380.mov" />](https://app.graphite.com/user-attachments/video/58ca40ef-b24d-41e4-974b-ef0bebd89380.mov)
Go to https://huggingface.co/spaces/TangleML/tangle_test4
2. Verify that URL parameters and hash changes are properly synchronized between the parent and child windows
## Additional Comments
This implementation follows the HuggingFace documentation for handling URL parameters in embedded Spaces: https://huggingface.co/docs/hub/en/spaces-handle-url-parameters1 parent a107ac3 commit 447f470
1 file changed
+19
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
0 commit comments