Fix issues #1
Browse files- index.html +1 -3
- static/script.js +1 -1
index.html
CHANGED
|
@@ -113,15 +113,13 @@
|
|
| 113 |
|
| 114 |
<button
|
| 115 |
id="getSolutions"
|
| 116 |
-
disabled
|
| 117 |
class="px-4 py-2 bg-blue-600 text-white text-sm font-medium rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-colors duration-200"
|
| 118 |
>
|
| 119 |
Get solutions
|
| 120 |
</button>
|
| 121 |
|
| 122 |
<button
|
| 123 |
-
id="getSolutionsStepByStep"
|
| 124 |
-
disabled
|
| 125 |
class="px-4 py-2 bg-green-600 text-white text-sm font-medium rounded-md hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2 transition-colors duration-200"
|
| 126 |
>
|
| 127 |
Get solutions (Step-by-step)
|
|
|
|
| 113 |
|
| 114 |
<button
|
| 115 |
id="getSolutions"
|
|
|
|
| 116 |
class="px-4 py-2 bg-blue-600 text-white text-sm font-medium rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-colors duration-200"
|
| 117 |
>
|
| 118 |
Get solutions
|
| 119 |
</button>
|
| 120 |
|
| 121 |
<button
|
| 122 |
+
id="getSolutionsStepByStep"
|
|
|
|
| 123 |
class="px-4 py-2 bg-green-600 text-white text-sm font-medium rounded-md hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2 transition-colors duration-200"
|
| 124 |
>
|
| 125 |
Get solutions (Step-by-step)
|
static/script.js
CHANGED
|
@@ -630,7 +630,7 @@ async function refineSolutions(critiques){
|
|
| 630 |
|
| 631 |
async function workflow(steps = 1){
|
| 632 |
let soluce;
|
| 633 |
-
for(let step; step <= steps; step++){
|
| 634 |
if(solutionsCriticizedVersions.length == 0){
|
| 635 |
soluce = await generateSolutions();
|
| 636 |
await generateCriticisms(soluce)
|
|
|
|
| 630 |
|
| 631 |
async function workflow(steps = 1){
|
| 632 |
let soluce;
|
| 633 |
+
for(let step = 1; step <= steps; step++){
|
| 634 |
if(solutionsCriticizedVersions.length == 0){
|
| 635 |
soluce = await generateSolutions();
|
| 636 |
await generateCriticisms(soluce)
|