Skip to content

Commit

Permalink
[apps/hal9] fix minor spelling typos
Browse files Browse the repository at this point in the history
  • Loading branch information
javierluraschi committed Dec 10, 2024
1 parent 5380f2a commit 77393fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/hal9/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
file_extension = filename.split(".")[-1] if "." in filename else "No extension"
download_file(user_input)
messages = insert_message(messages, "system", f"Consider using the file available at path: './.storage/.{filename}' for the following questions.")
messages = insert_message(messages, "assistant", f"Im ready to response questions about your file: {filename}")
messages = insert_message(messages, "assistant", f"I'm ready to answer questions about your file: {filename}")
if file_extension.lower() == "pdf":
generate_text_embeddings_parquet(user_input)
if file_extension.lower() in ['jpg', 'jpeg', 'png','webp']:
add_images_descriptions(f"./.storage/.{filename}")
print(f"Im ready to response questions about your file: {filename}")
print(f"I'm ready to answer questions about your file: {filename}")
else:
user_input = user_input.replace("\f", "\n")
messages = insert_message(messages, "user", user_input)
Expand Down

0 comments on commit 77393fa

Please sign in to comment.