Skip to content

workflow: allow exporting workflow file when on hf spaces - #13715

Open
hannahblair wants to merge 6 commits into
mainfrom
workflow-export-json
Open

workflow: allow exporting workflow file when on hf spaces#13715
hannahblair wants to merge 6 commits into
mainfrom
workflow-export-json

Conversation

@hannahblair

@hannahblair hannahblair commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Description

the saved image text is misleading when you're editing a workflow on hf spaces, and you cant actually save your changes.

i've added a button exclusively to spaces allowing you to export the workflow as JSON via clipboard or .json download

image

https://huggingface.co/spaces/hmb/minimax-h3-model-2

@abidlabs

abidlabs commented Aug 6, 2026

Copy link
Copy Markdown
Member

@hannahblair can you explain the motivation a bit more? Ideally we rely on Hub for this (i.e. duplicate a Space to make it yours so you can edit it)

@hannahblair

hannahblair commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator Author

@hannahblair can you explain the motivation a bit more? Ideally we rely on Hub for this (i.e. duplicate a Space to make it yours so you can edit it)

I think it might be confusing for users that they're seeing image on HF spaces without anything being saved as far as they can see. As soon as you refresh, the changes are lost - so the UX is misleading

As an owner of the space, it'd be nice to be able to edit the workflow via the UI without having to pull it, edit locally and reupload. At least I've wanted to edit workflows this way

Having copy as JSON + download means they can just upload/paste the workflow to the HF space files, but actually i'm wondering if those two buttons could just be replaced by a Save to Space button via HfApi.upload_file

Either way, we should remove the saved text on HF spaces when it doesn't actually do anything

@abidlabs

abidlabs commented Aug 8, 2026

Copy link
Copy Markdown
Member

Ah yeah I see what you mean, that is misleading. The problem is that if you do upload the files, or use the HfApi.upload_file, the whole Space will restart. There should be a better DX hmm...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants