Fix logging
This commit is contained in:
parent
db24bb4db4
commit
87187abbb3
@ -179,7 +179,7 @@ class MovieTrainer(KaggleTrainer):
|
|||||||
if statements_from_file:
|
if statements_from_file:
|
||||||
self.chatbot.storage.create_many(statements_from_file)
|
self.chatbot.storage.create_many(statements_from_file)
|
||||||
|
|
||||||
log.info("Training took", time.time() - start_time, "seconds.")
|
log.info(f"Training took {time.time() - start_time} seconds.")
|
||||||
|
|
||||||
async def asynctrain(self, *args, **kwargs):
|
async def asynctrain(self, *args, **kwargs):
|
||||||
extracted_lines = self.data_directory / "movie_lines.tsv"
|
extracted_lines = self.data_directory / "movie_lines.tsv"
|
||||||
@ -302,7 +302,7 @@ class UbuntuCorpusTrainer2(KaggleTrainer):
|
|||||||
if statements_from_file:
|
if statements_from_file:
|
||||||
self.chatbot.storage.create_many(statements_from_file)
|
self.chatbot.storage.create_many(statements_from_file)
|
||||||
|
|
||||||
log.info("Training took", time.time() - start_time, "seconds.")
|
log.info(f"Training took {time.time() - start_time} seconds.")
|
||||||
|
|
||||||
|
|
||||||
class TwitterCorpusTrainer(Trainer):
|
class TwitterCorpusTrainer(Trainer):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user