Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Transformerlab App
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
TransformerLab
Transformerlab App
Commits
75ba98a2
Commit
75ba98a2
authored
1 year ago
by
Tony Salomone
Browse files
Options
Downloads
Patches
Plain Diff
Rename ImportHFCacheModal object to ImportModelsModal
parent
7d90d62f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/renderer/components/ModelZoo/ImportModelsBar.tsx
+2
-2
2 additions, 2 deletions
src/renderer/components/ModelZoo/ImportModelsBar.tsx
src/renderer/components/ModelZoo/ImportModelsModal.tsx
+2
-2
2 additions, 2 deletions
src/renderer/components/ModelZoo/ImportModelsModal.tsx
with
4 additions
and
4 deletions
src/renderer/components/ModelZoo/ImportModelsBar.tsx
+
2
−
2
View file @
75ba98a2
...
@@ -11,7 +11,7 @@ import {
...
@@ -11,7 +11,7 @@ import {
import
{
PlusIcon
}
from
'
lucide-react
'
;
import
{
PlusIcon
}
from
'
lucide-react
'
;
import
*
as
chatAPI
from
'
../../lib/transformerlab-api-sdk
'
;
import
*
as
chatAPI
from
'
../../lib/transformerlab-api-sdk
'
;
import
Import
FromHFCache
Modal
from
'
./ImportModelsModal
'
;
import
Import
Models
Modal
from
'
./ImportModelsModal
'
;
export
default
function
ModelDetails
({})
{
export
default
function
ModelDetails
({})
{
const
[
downloadingModel
,
setDownloadingModel
]
=
useState
(
null
);
const
[
downloadingModel
,
setDownloadingModel
]
=
useState
(
null
);
...
@@ -19,7 +19,7 @@ export default function ModelDetails({}) {
...
@@ -19,7 +19,7 @@ export default function ModelDetails({}) {
return
(
return
(
<>
<>
<
Import
FromHFCache
Modal
<
Import
Models
Modal
open
=
{
importModelsModalOpen
}
open
=
{
importModelsModalOpen
}
setOpen
=
{
setImportModelsModalOpen
}
setOpen
=
{
setImportModelsModalOpen
}
/>
/>
...
...
This diff is collapsed.
Click to expand it.
src/renderer/components/ModelZoo/ImportModelsModal.tsx
+
2
−
2
View file @
75ba98a2
...
@@ -23,7 +23,7 @@ import {
...
@@ -23,7 +23,7 @@ import {
// fetcher used by SWR
// fetcher used by SWR
const
fetcher
=
(
url
)
=>
fetch
(
url
).
then
((
res
)
=>
res
.
json
());
const
fetcher
=
(
url
)
=>
fetch
(
url
).
then
((
res
)
=>
res
.
json
());
export
default
function
Import
FromHFCache
Modal
({
open
,
setOpen
})
{
export
default
function
Import
Models
Modal
({
open
,
setOpen
})
{
const
[
importing
,
setImporting
]
=
useState
(
false
);
const
[
importing
,
setImporting
]
=
useState
(
false
);
const
{
const
{
...
@@ -70,7 +70,7 @@ export default function ImportFromHFCacheModal({ open, setOpen}) {
...
@@ -70,7 +70,7 @@ export default function ImportFromHFCacheModal({ open, setOpen}) {
<
ModalClose
/>
<
ModalClose
/>
<
Typography
level
=
"h2"
>
Select models to import:
</
Typography
>
<
Typography
level
=
"h2"
>
Select models to import:
</
Typography
>
<
form
<
form
id
=
"import-
hfcache
-form"
id
=
"import-
models
-form"
style
=
{
{
style
=
{
{
display
:
'
flex
'
,
display
:
'
flex
'
,
flexDirection
:
'
column
'
,
flexDirection
:
'
column
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment