File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed
xinference/ui/web/ui/src/scenes/launch_model Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ function AddModelDialog({ open, onClose }) {
8888 const res = await fetch ( endPoint + '/v1/models/add' , {
8989 method : 'POST' ,
9090 headers : { 'Content-Type' : 'application/json' } ,
91- body : JSON . stringify ( { model_type : modelType , model_json : modelJson } ) ,
91+ body : JSON . stringify ( { model_type : modelType , model_json : modelJson } ) ,
9292 } )
9393 const rawText = await res . text ( ) . catch ( ( ) => '' )
9494 if ( ! res . ok ) {
@@ -180,7 +180,12 @@ function AddModelDialog({ open, onClose }) {
180180 < Button onClick = { onClose } disabled = { loading } >
181181 { t ( 'launchModel.cancel' ) }
182182 </ Button >
183- < Button autoFocus type = "submit" form = "subscription-form" disabled = { loading } >
183+ < Button
184+ autoFocus
185+ type = "submit"
186+ form = "subscription-form"
187+ disabled = { loading }
188+ >
184189 { t ( 'launchModel.confirm' ) }
185190 </ Button >
186191 </ DialogActions >
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ const LaunchModel = () => {
6666
6767 const downloadModels = ( ) => {
6868 setLoading ( true )
69- console . log ( 'modelType' , modelType ) ;
69+ console . log ( 'modelType' , modelType )
7070 }
7171
7272 return (
@@ -99,11 +99,13 @@ const LaunchModel = () => {
9999 value = "/launch_model/custom/llm"
100100 />
101101 </ TabList >
102- < Box sx = { {
103- display : 'flex' ,
104- alignItems : 'center' ,
105- gap : '10px'
106- } } >
102+ < Box
103+ sx = { {
104+ display : 'flex' ,
105+ alignItems : 'center' ,
106+ gap : '10px' ,
107+ } }
108+ >
107109 < Box sx = { { display : 'flex' , gap : 0 } } >
108110 < Select
109111 value = { modelType }
You can’t perform that action at this time.
0 commit comments