Make prints done by method gen dt exmpls readable
This commit is contained in:
parent
6969a81616
commit
3f2e5550c7
@ -157,6 +157,7 @@ class ExamplesManager:
|
|||||||
while True:
|
while True:
|
||||||
|
|
||||||
howManyExamplesGenerate = int(input("How many example do you want to generate? : "))
|
howManyExamplesGenerate = int(input("How many example do you want to generate? : "))
|
||||||
|
print()
|
||||||
|
|
||||||
for i in range(howManyExamplesGenerate):
|
for i in range(howManyExamplesGenerate):
|
||||||
|
|
||||||
@ -187,7 +188,9 @@ class ExamplesManager:
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
# if not a duplicate then ask for classification
|
# if not a duplicate then ask for classification
|
||||||
|
print()
|
||||||
print("Generated example: \n{}".format(newExample.getDescription()))
|
print("Generated example: \n{}".format(newExample.getDescription()))
|
||||||
|
print()
|
||||||
|
|
||||||
givenClsIsGood = False
|
givenClsIsGood = False
|
||||||
while not givenClsIsGood:
|
while not givenClsIsGood:
|
||||||
@ -204,6 +207,6 @@ class ExamplesManager:
|
|||||||
newExample.classification = classification
|
newExample.classification = classification
|
||||||
self.addExamplesToFile([newExample])
|
self.addExamplesToFile([newExample])
|
||||||
|
|
||||||
keepGenerating = input("Type 'E' to stop generating or anything else to continue")
|
keepGenerating = input("Type 'E' to stop generating or anything else to continue.\n")
|
||||||
if keepGenerating == "E":
|
if keepGenerating == "E":
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user