https://github.com/yjg30737/pyqt-huggingface-set-path-widget
PyQt widget designed to conveniently set up a cache directory for storing Hugging Face models
https://github.com/yjg30737/pyqt-huggingface-set-path-widget
huggingface huggingface-gui pyqt pyqt-examples pyqt5 pyqt5-desktop-application pyqt5-examples
Last synced: 9 months ago
JSON representation
PyQt widget designed to conveniently set up a cache directory for storing Hugging Face models
- Host: GitHub
- URL: https://github.com/yjg30737/pyqt-huggingface-set-path-widget
- Owner: yjg30737
- License: mit
- Created: 2023-07-01T00:36:21.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-01T00:44:43.000Z (over 2 years ago)
- Last Synced: 2025-04-10T21:49:31.014Z (9 months ago)
- Topics: huggingface, huggingface-gui, pyqt, pyqt-examples, pyqt5, pyqt5-desktop-application, pyqt5-examples
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyqt-huggingface-set-path-widget
PyQt widget designed to conveniently set up a cache directory for storing Hugging Face models
When you are concerned about hard disk space or want to save models in a specific directory, this widget allows you to manage the cache directory in a GUI manner. The default value is TRANSFORMERS_CACHE (the default path where Hugging Face models are downloaded), but you can change it to your preferred location.
The modified path is saved in an ini file, and if you want to revert to the default value, simply call the `resetCacheDir`. You can also open the file from the input field's context menu by right-clicking, which will allow you to navigate to the desired location.
This is directly used in huggingface_gui.
## Requirements
* PyQt5 >= 5.14
* transformers
## How to Run
1. git clone ~
2. pip install -r requirements.txt
3. python main.py
## Method & Signal Overview
### Signal
* findClicked
* onCacheDirSet
### Method
* resetCacheDir
* getCacheDirectory
## Preview
