Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgoringe committed Jul 11, 2024
1 parent 2566ac3 commit 5cc6a02
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions js/use_everywhere_graph_analysis.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class GraphAnalyser {


async analyse_graph(modify_and_return_prompt=false, check_for_loops=false, supress_before_queued=true) {
try {
if (supress_before_queued) {
//try {
/*if (supress_before_queued) {
app.graph._nodes.forEach((node) => {
node.widgets?.forEach((widget) => {
if (widget.beforeQueued) {
Expand All @@ -36,9 +36,9 @@ class GraphAnalyser {
node.seedControl.lastSeedButton.disabled = true
}
})
}
return this._analyse_graph(modify_and_return_prompt, check_for_loops);
} finally {
}*/
//return this._analyse_graph(modify_and_return_prompt, check_for_loops);
/*} finally {
if (supress_before_queued) {
app.graph._nodes.forEach((node) => {
node.widgets?.forEach((widget) => {
Expand All @@ -52,15 +52,18 @@ class GraphAnalyser {
}
})
}
}
}
async _analyse_graph(modify_and_return_prompt=false, check_for_loops=false) {
}*/
//}
//async _analyse_graph(modify_and_return_prompt=false, check_for_loops=false) {
if (this.pause_depth > 0) { return this.original_graphToPrompt.apply(app) }
this.ambiguity_messages = [];
var p = await this.original_graphToPrompt.apply(app);
var p;
if (modify_and_return_prompt) {
p = await this.original_graphToPrompt.apply(app);
p = structuredClone(p);
}
} else {
p = { workflow:app.graph.serialize() }
}

// Create a UseEverywhereList and populate it from all live (not bypassed) nodes
const ues = new UseEverywhereList();
Expand Down

0 comments on commit 5cc6a02

Please sign in to comment.