Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix committed Jul 27, 2023
1 parent d3ce904 commit 9633fae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion optimum/exporters/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,9 @@ def determine_framework(
framework = "pt"
elif any(is_tf_weight_file):
framework = "tf"
elif "model_index.json" in all_files and any(file.endswith((pt_weight_extension, safe_weight_extension)) for file in all_files):
elif "model_index.json" in all_files and any(
file.endswith((pt_weight_extension, safe_weight_extension)) for file in all_files
):
# stable diffusion case
framework = "pt"
else:
Expand Down

0 comments on commit 9633fae

Please sign in to comment.