We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 369110e commit e8128a3Copy full SHA for e8128a3
scripts/model_gallery_info.py
@@ -103,7 +103,10 @@ def format_description(description):
103
if readmeFile:
104
# If there is a README file, read it
105
readme = fs.read_text(readmeFile)
106
- summarized_readme = summarize(readme)
+ try:
107
+ summarized_readme = summarize(readme)
108
+ except Exception as e:
109
+ print(f"Error summarizing the README: {str(e)}", file=sys.stderr)
110
summarized_readme = format_description(summarized_readme)
111
112
print("Model correctly processed")
0 commit comments