Skip to content

Commit

Permalink
Fix tqdm in openai_api (#241)
Browse files Browse the repository at this point in the history
* add

* refine readme for longwriter

* add tech report for longwriter

* update

* update task config

* update

* fix lint

* fix lint for openai_api

* test

* test

* fix tqdm in openai_api.py for threadpool executor: del desc
  • Loading branch information
wangxingjun778 authored Dec 14, 2024
1 parent ef3321e commit bffa15b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evalscope/models/api/openai_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def process_one(in_data: str):
future_to_task = {executor.submit(process_one, input_one): input_one for input_one in inputs}

# Show progress bar
for future in tqdm(as_completed(future_to_task), total=len(inputs), desc=['Predicting']):
for future in tqdm(as_completed(future_to_task), total=len(inputs)):
results.append(future.result())

return results
Expand Down

0 comments on commit bffa15b

Please sign in to comment.