mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-19 18:15:00 +00:00
chore(scripts): handle summarization errors (#4271)
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
369110e6bf
commit
e8128a339a
1 changed files with 4 additions and 1 deletions
|
@ -103,7 +103,10 @@ if __name__ == "__main__":
|
|||
if readmeFile:
|
||||
# If there is a README file, read it
|
||||
readme = fs.read_text(readmeFile)
|
||||
try:
|
||||
summarized_readme = summarize(readme)
|
||||
except Exception as e:
|
||||
print(f"Error summarizing the README: {str(e)}", file=sys.stderr)
|
||||
summarized_readme = format_description(summarized_readme)
|
||||
|
||||
print("Model correctly processed")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue