Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Llama Index
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
run-llama
Llama Index
Commits
29ef306a
Unverified
Commit
29ef306a
authored
1 year ago
by
Dilbarjot Randhawa
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
fix error that occurs when defining custom_path in download_loader. (#8865)
parent
975a76fa
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llama_index/readers/download.py
+7
-1
7 additions, 1 deletion
llama_index/readers/download.py
with
7 additions
and
1 deletion
llama_index/readers/download.py
+
7
−
1
View file @
29ef306a
...
@@ -35,11 +35,17 @@ def download_loader(
...
@@ -35,11 +35,17 @@ def download_loader(
Returns:
Returns:
A Loader.
A Loader.
"""
"""
# Only one of the `custom_dir` or `custom_path` is supported.
if
custom_path
is
not
None
:
custom_dir
=
None
else
:
custom_dir
=
"
llamahub_modules
"
reader_cls
=
download_llama_module
(
reader_cls
=
download_llama_module
(
loader_class
,
loader_class
,
llama_hub_url
=
loader_hub_url
,
llama_hub_url
=
loader_hub_url
,
refresh_cache
=
refresh_cache
,
refresh_cache
=
refresh_cache
,
custom_dir
=
"
llamahub_modules
"
,
custom_dir
=
custom_dir
,
custom_path
=
custom_path
,
custom_path
=
custom_path
,
use_gpt_index_import
=
use_gpt_index_import
,
use_gpt_index_import
=
use_gpt_index_import
,
)
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment