File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -216,9 +216,9 @@ async def generate_responses(
216216 assert count == 1 , "temperature must be greater than 0 if count > 1"
217217 self ._update_count (count )
218218 self .system_message = SystemMessage (system_prompt )
219-
219+
220+ total = len (prompts ) * self .count
220221 if show_progress_bars :
221- total = len (prompts ) * self .count
222222 self .progress_bar = start_progress_bar (existing_progress_bar )
223223 self .progress_task = self .progress_bar .add_task (
224224 f"Generating { self .count } responses per prompt..." ,
Original file line number Diff line number Diff line change @@ -224,7 +224,6 @@ async def _generate_from_template(
224224 )
225225 dataset = {}
226226 for system_style in system_styles :
227- print (f"Generating responses with { system_style } system prompts..." )
228227 system_prompt = SYSTEM_PROMPT_DICT [system_style ]
229228 with contextlib .redirect_stdout (io .StringIO ()):
230229 tmp = await self .generate_responses (
You can’t perform that action at this time.
0 commit comments