Skip to content

Commit

Permalink
update models with required
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinicius Vaz committed Oct 24, 2023
1 parent 68b20cd commit 5aa9c24
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 22 deletions.
25 changes: 5 additions & 20 deletions .domino/compiled_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,8 @@
"file_path": {
"title": "File Path",
"description": "The path to the text file to process.",
"anyOf": [
{
"type": "string",
"format": "file-path"
},
{
"type": "string"
}
]
"required": true,
"type": "string"
},
"model_size": {
"description": "The size of the model to use.",
Expand Down Expand Up @@ -128,7 +121,7 @@
}
},
"secrets_schema": null,
"source_url": "https://github.com/Tauffer-Consulting/ml_domino_pieces/tree/main/pieces/WhisperPiece"
"source_url": "Tauffer-Consulting/ml_domino_pieces//tree/main/pieces/WhisperPiece"
},
"TextSummarizerPiece": {
"name": "TextSummarizerPiece",
Expand Down Expand Up @@ -170,15 +163,7 @@
"title": "Input File Path",
"description": "The path to the text file to summarize.",
"default": "",
"anyOf": [
{
"type": "string",
"format": "file-path"
},
{
"type": "string"
}
]
"type": "string"
},
"input_text": {
"title": "Input Text",
Expand Down Expand Up @@ -248,6 +233,6 @@
}
},
"secrets_schema": null,
"source_url": "https://github.com/Tauffer-Consulting/ml_domino_pieces/tree/main/pieces/TextSummarizerPiece"
"source_url": "Tauffer-Consulting/ml_domino_pieces//tree/main/pieces/TextSummarizerPiece"
}
}
2 changes: 1 addition & 1 deletion pieces/TextSummarizerPiece/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class InputModel(BaseModel):
"""
Input data for TextSummarizerPiece
"""
input_file_path: Union[FilePath, str] = Field(
input_file_path: str = Field(
description='The path to the text file to summarize.',
default=""
)
Expand Down
3 changes: 2 additions & 1 deletion pieces/WhisperPiece/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ class InputModel(BaseModel):
"""
Input data for WhisperPiece
"""
file_path: Union[FilePath, str] = Field(
file_path: str = Field(
description='The path to the text file to process.',
required=True
)
model_size: ModelSizeType = Field(
description='The size of the model to use.',
Expand Down

0 comments on commit 5aa9c24

Please sign in to comment.