Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Merge pull request #37 from devniel/fix-comfyui-2
Browse files
src/app/api/resolve/providers/comfyui/index.ts
CHANGED
@@ -28,7 +28,7 @@ export async function resolveSegment(
|
|
28 |
// for API doc please see:
|
29 |
// https://github.com/tctien342/comfyui-sdk/blob/main/examples/example-t2i.ts
|
30 |
const api = new ComfyApi(
|
31 |
-
request.settings.comfyUiApiUrl || 'http://localhost:
|
32 |
).init()
|
33 |
|
34 |
if (request.segment.category === ClapSegmentCategory.STORYBOARD) {
|
|
|
28 |
// for API doc please see:
|
29 |
// https://github.com/tctien342/comfyui-sdk/blob/main/examples/example-t2i.ts
|
30 |
const api = new ComfyApi(
|
31 |
+
request.settings.comfyUiApiUrl || 'http://localhost:8188'
|
32 |
).init()
|
33 |
|
34 |
if (request.segment.category === ClapSegmentCategory.STORYBOARD) {
|
src/components/settings/provider.tsx
CHANGED
@@ -123,7 +123,7 @@ export function SettingsSectionProvider() {
|
|
123 |
label="ComfyUI API URL"
|
124 |
value={comfyUiApiUrl}
|
125 |
defaultValue={defaultSettings.comfyUiApiUrl}
|
126 |
-
onChange={
|
127 |
type="text"
|
128 |
/>
|
129 |
|
@@ -132,7 +132,7 @@ export function SettingsSectionProvider() {
|
|
132 |
value={comfyUiClientId}
|
133 |
defaultValue={defaultSettings.comfyUiClientId}
|
134 |
onChange={setComfyUiClientId}
|
135 |
-
type=
|
136 |
/>
|
137 |
|
138 |
<FormInput
|
|
|
123 |
label="ComfyUI API URL"
|
124 |
value={comfyUiApiUrl}
|
125 |
defaultValue={defaultSettings.comfyUiApiUrl}
|
126 |
+
onChange={setComfyUiApiUrl}
|
127 |
type="text"
|
128 |
/>
|
129 |
|
|
|
132 |
value={comfyUiClientId}
|
133 |
defaultValue={defaultSettings.comfyUiClientId}
|
134 |
onChange={setComfyUiClientId}
|
135 |
+
type="text"
|
136 |
/>
|
137 |
|
138 |
<FormInput
|
src/services/settings/getDefaultSettingsState.ts
CHANGED
@@ -5,7 +5,7 @@ import { defaultWorkflowForImages } from './workflows/image'
|
|
5 |
|
6 |
export function getDefaultSettingsState(): SettingsState {
|
7 |
const state: SettingsState = {
|
8 |
-
comfyUiClientId: '',
|
9 |
replicateApiKey: '',
|
10 |
comfyIcuApiKey: '',
|
11 |
comfyIcuAccelerator: ComfyIcuAccelerator.L4,
|
@@ -76,7 +76,7 @@ export function getDefaultSettingsState(): SettingsState {
|
|
76 |
comfyWorkflowForSound: '{}',
|
77 |
comfyWorkflowForMusic: '{}',
|
78 |
|
79 |
-
comfyUiApiUrl: 'http://localhost:
|
80 |
|
81 |
// those are not designed for Hugging Face specifically,
|
82 |
// but to be compatible with any Gradio API URL that the
|
|
|
5 |
|
6 |
export function getDefaultSettingsState(): SettingsState {
|
7 |
const state: SettingsState = {
|
8 |
+
comfyUiClientId: 'clapper',
|
9 |
replicateApiKey: '',
|
10 |
comfyIcuApiKey: '',
|
11 |
comfyIcuAccelerator: ComfyIcuAccelerator.L4,
|
|
|
76 |
comfyWorkflowForSound: '{}',
|
77 |
comfyWorkflowForMusic: '{}',
|
78 |
|
79 |
+
comfyUiApiUrl: 'http://localhost:8188',
|
80 |
|
81 |
// those are not designed for Hugging Face specifically,
|
82 |
// but to be compatible with any Gradio API URL that the
|