Skip to content
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions transformerlab/models/ollamamodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
async def list_models():
try:
ollama_model_library = ollama_models_library_dir()
except FileNotFoundError:
print("Skipping Ollama models: manifests directory not found")
return []
except Exception as e:
print("Failed to locate Ollama models library:")
print(str(e))
Expand Down
6 changes: 1 addition & 5 deletions transformerlab/routers/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,8 +619,6 @@ async def get_task_file_content(task_dir: str, file_path: str):
return {"status": "error", "message": "An error occurred while getting task file content"}




@router.post("/install_from_gallery", summary="Install a task from transformerlab/galleries to local tasks-gallery")
async def install_task_from_gallery(
id: str = Form(...),
Expand Down Expand Up @@ -958,9 +956,7 @@ async def import_task_from_local_gallery(
remote_info = resp.json()
# Extract uploaded_dir path from response
uploaded_dir = (
remote_info.get("uploaded_files", {})
.get("dir_files", {})
.get("uploaded_dir")
remote_info.get("uploaded_files", {}).get("dir_files", {}).get("uploaded_dir")
)
if uploaded_dir:
try:
Expand Down
Loading