Spaces:
Sleeping
Sleeping
lukestanley
commited on
Commit
•
f065ef3
1
Parent(s):
6c32632
Bug fix for undefined last_edit
Browse files
chill.py
CHANGED
@@ -38,7 +38,7 @@ Outputs something like this:
|
|
38 |
|
39 |
global suggestions
|
40 |
suggestions = []
|
41 |
-
|
42 |
start_time = time.time()
|
43 |
max_iterations = 20
|
44 |
|
@@ -113,7 +113,9 @@ def print_iteration_result(iteration, overall_score, time_used):
|
|
113 |
|
114 |
def improvement_loop(input_text):
|
115 |
global original_text
|
|
|
116 |
original_text = input_text
|
|
|
117 |
for iteration in range(1, max_iterations + 1):
|
118 |
try:
|
119 |
if iteration % 2 == 1:
|
|
|
38 |
|
39 |
global suggestions
|
40 |
suggestions = []
|
41 |
+
last_edit = ""
|
42 |
start_time = time.time()
|
43 |
max_iterations = 20
|
44 |
|
|
|
113 |
|
114 |
def improvement_loop(input_text):
|
115 |
global original_text
|
116 |
+
global last_edit
|
117 |
original_text = input_text
|
118 |
+
|
119 |
for iteration in range(1, max_iterations + 1):
|
120 |
try:
|
121 |
if iteration % 2 == 1:
|