Skip to content

Commit

Permalink
Merge pull request #72 from FYP-2024-IQMA/SCRUM-126-Dealing-with-Olla…
Browse files Browse the repository at this point in the history
…ma-Modelfiles

Changing modelfile directory and updating ollama_setup.py
  • Loading branch information
xuanli286 authored Sep 15, 2024
2 parents a3b6beb + 8ba5c6f commit 010df6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions backend/src/chatbot/ollama_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ def create_model():
# if .gguf doesn't exist, download it from the Hugging Face Hub
if gguf_path:
print(f"Found the .gguf file at: {gguf_path}")
os.chdir("../models")
print("Can run ollama create command")
else:
os.chdir("../models")
print(".gguf file not found. Downloading from the Hugging Face Hub...")
download_gguf(repo_id, filename, '.')

create_model()
Expand Down

0 comments on commit 010df6f

Please sign in to comment.