Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit 1367271

Browse files
author
Guangsen Wang
committed
fix num_utterances=-1 bug in generator_base.py
1 parent 6dd8866 commit 1367271

File tree

3 files changed

+1
-399
lines changed

3 files changed

+1
-399
lines changed

botsim/modules/generator/generator_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def generate_goals(self,
187187

188188
# if paraphrase:
189189
para_config = "_".join([str(x) for x in self.num_paraphrases_per_model])
190-
if number_utterances > 0:
190+
if isinstance(number_utterances, int) and number_utterances > 0:
191191
para_config = para_config + "_" + str(number_utterances)+"_utts"
192192
else:
193193
para_config = para_config + "_all_utts"

botsim/modules/remediator/dashboard/run.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)