Skip to content

Commit

Permalink
Fix dataset aregs (#2516)
Browse files Browse the repository at this point in the history
* Fix dataset aregs

* Format :)

---------

Co-authored-by: Joan Antoni RE <[email protected]>
  • Loading branch information
bloodbare and jotare authored Oct 4, 2024
1 parent e9c9768 commit 4872802
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions nucliadb_dataset/src/nucliadb_dataset/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,21 @@ class RunningSettings(BaseSettings):
download_path: str = pydantic.Field(f"{Path.home()}/.nuclia/download", description="Download path")
url: str = pydantic.Field(description="KnowledgeBox URL")
type: Task = pydantic.Field(description="Dataset Type")
labelset: Optional[str] = pydantic.Field(description="For classification which labelset or families")
labelset: Optional[str] = pydantic.Field(
None, description="For classification which labelset or families"
)

datasets_url: str = pydantic.Field(
"https://europe-1.nuclia.cloud",
description="Base url for the Nuclia datasets component (excluding /api/v1)™", # noqa
)

apikey: Optional[str] = pydantic.Field(description="API key to upload to Nuclia Datasets™")
apikey: Optional[str] = pydantic.Field(None, description="API key to upload to Nuclia Datasets™")

environment: Region = pydantic.Field(Region.ON_PREM, description="region or on-prem")

service_token: Optional[str] = pydantic.Field(
description="Service account key to access Nuclia Cloud"
None, description="Service account key to access Nuclia Cloud"
)

batch_size: int = pydantic.Field(64, description="Batch streaming size")
Expand Down

0 comments on commit 4872802

Please sign in to comment.