Skip to content

Commit 756dcfa

Browse files
committed
fix: detail
1 parent 78a2ada commit 756dcfa

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

xinference/ui/web/ui/src/scenes/launch_model/components/addModelDialog.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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>

xinference/ui/web/ui/src/scenes/launch_model/index.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff 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}

0 commit comments

Comments
 (0)