Skip to content

Commit

Permalink
Merge pull request #37 from devniel/fix-comfyui-2
Browse files Browse the repository at this point in the history
fix: comfy default settings
  • Loading branch information
jbilcke-hf authored Aug 13, 2024
2 parents 653300f + 4c76270 commit 2b91240
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/api/resolve/providers/comfyui/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function resolveSegment(
// for API doc please see:
// https://github.com/tctien342/comfyui-sdk/blob/main/examples/example-t2i.ts
const api = new ComfyApi(
request.settings.comfyUiApiUrl || 'http://localhost:8189'
request.settings.comfyUiApiUrl || 'http://localhost:8188'
).init()

if (request.segment.category === ClapSegmentCategory.STORYBOARD) {
Expand Down
4 changes: 2 additions & 2 deletions src/components/settings/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export function SettingsSectionProvider() {
label="ComfyUI API URL"
value={comfyUiApiUrl}
defaultValue={defaultSettings.comfyUiApiUrl}
onChange={setComfyIcuApiKey}
onChange={setComfyUiApiUrl}
type="text"
/>

Expand All @@ -132,7 +132,7 @@ export function SettingsSectionProvider() {
value={comfyUiClientId}
defaultValue={defaultSettings.comfyUiClientId}
onChange={setComfyUiClientId}
type={apiKeyType}
type="text"
/>

<FormInput
Expand Down
4 changes: 2 additions & 2 deletions src/services/settings/getDefaultSettingsState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { defaultWorkflowForImages } from './workflows/image'

export function getDefaultSettingsState(): SettingsState {
const state: SettingsState = {
comfyUiClientId: '',
comfyUiClientId: 'clapper',
replicateApiKey: '',
comfyIcuApiKey: '',
comfyIcuAccelerator: ComfyIcuAccelerator.L4,
Expand Down Expand Up @@ -76,7 +76,7 @@ export function getDefaultSettingsState(): SettingsState {
comfyWorkflowForSound: '{}',
comfyWorkflowForMusic: '{}',

comfyUiApiUrl: 'http://localhost:8189',
comfyUiApiUrl: 'http://localhost:8188',

// those are not designed for Hugging Face specifically,
// but to be compatible with any Gradio API URL that the
Expand Down

0 comments on commit 2b91240

Please sign in to comment.