Use huggingface-cache if HF_HUB_OFFLINE is set #264
+29
−13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR modifies the list_local_whisper_models to return the same structure as list_whisper_models to enable the possibility to use the huggingface cache if HF_HUB_OFFLINE is set. Also it modifies the get_models function to use the according function depending on HF_HUB_OFFLINE.
This PR also introduces a dropdown in the WebUI for selecting the output format (text,json, srt..) SRT seems not to work in streaming mode.
You need to be online once to download the README.md which is used to fill the metadata