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:
parent
2a1522fa70
commit
fb2d114d38
3 changed files with 97 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue