Add HuggingFace model auto-fetch feature

- Added model identifier input field with Fetch button
- Added loading indicator for fetch operation
- Added async handleHfFetch function to fetch config from HuggingFace
- Fetches config from https://huggingface.co/{model}/blob/main/config.json
- Replaces current config when fetch is successful
- Shows 'Model not found' error for 404 responses
- Sets focus on model input after successful fetch
- Added translations for new fields
This commit is contained in:
Arseniy Romenskiy 2026-04-12 01:52:34 +03:00
parent 2a1522fa70
commit fb2d114d38
3 changed files with 97 additions and 0 deletions

View file

@ -367,3 +367,18 @@ html[lang="en"] .tooltip-icon:hover::after {
align-self: flex-end;
}
}
.loading-indicator {
text-align: center;
font-style: italic;
color: #0000FF;
padding: 10px;
}
#hf-fetch-btn {
background-color: #0000FF;
}
#hf-fetch-btn:hover {
background-color: #0000AA;
}