Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
9d611a90
Commit
9d611a90
authored
Jan 31, 2023
by
comfyanonymous
Browse files
Small web interface fixes.
parent
fef41d0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
webshit/index.html
webshit/index.html
+2
-2
No files found.
webshit/index.html
View file @
9d611a90
...
@@ -139,7 +139,7 @@ function onObjectInfo(json) {
...
@@ -139,7 +139,7 @@ function onObjectInfo(json) {
if
(
step_val
==
undefined
)
step_val
=
1
;
if
(
step_val
==
undefined
)
step_val
=
1
;
w
=
this
.
addWidget
(
"
number
"
,
x
,
default_val
,
function
(
v
){
let
s
=
this
.
options
.
step
/
10
;
this
.
value
=
Math
.
round
(
v
/
s
)
*
s
;},
{
min
:
min_val
,
max
:
max_val
,
step
:
10.0
*
step_val
}
);
w
=
this
.
addWidget
(
"
number
"
,
x
,
default_val
,
function
(
v
){
let
s
=
this
.
options
.
step
/
10
;
this
.
value
=
Math
.
round
(
v
/
s
)
*
s
;},
{
min
:
min_val
,
max
:
max_val
,
step
:
10.0
*
step_val
}
);
this
.
_widgets
+=
[
w
]
this
.
_widgets
+=
[
w
]
if
(
x
==
"
seed
"
)
{
if
(
x
==
"
seed
"
||
x
==
"
noise_seed
"
)
{
w1
=
this
.
addWidget
(
"
toggle
"
,
"
Random seed after every gen
"
,
true
,
function
(
v
){},
{
on
:
"
enabled
"
,
off
:
"
disabled
"
}
);
w1
=
this
.
addWidget
(
"
toggle
"
,
"
Random seed after every gen
"
,
true
,
function
(
v
){},
{
on
:
"
enabled
"
,
off
:
"
disabled
"
}
);
w1
.
to_randomize
=
w
;
w1
.
to_randomize
=
w
;
this
.
_widgets
+=
[
w1
]
this
.
_widgets
+=
[
w1
]
...
@@ -432,7 +432,7 @@ function prompt_file_load(file)
...
@@ -432,7 +432,7 @@ function prompt_file_load(file)
offset
+=
12
+
length
;
offset
+=
12
+
length
;
}
}
console
.
log
(
txt_chunks
);
console
.
log
(
txt_chunks
);
console
.
log
(
JSON
.
parse
(
txt_chunks
[
"
prompt
"
]));
//
console.log(JSON.parse(txt_chunks["prompt"]));
loadGraphData
(
graph
,
JSON
.
parse
(
txt_chunks
[
"
workflow
"
]));
loadGraphData
(
graph
,
JSON
.
parse
(
txt_chunks
[
"
workflow
"
]));
};
};
reader
.
readAsArrayBuffer
(
file
);
reader
.
readAsArrayBuffer
(
file
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment