Upload schemas.py
Browse files- schemas.py +8 -4
schemas.py
CHANGED
|
@@ -30,14 +30,18 @@ class CustomModeGenerateParam(BaseModel):
|
|
| 30 |
)
|
| 31 |
continue_clip_id: Optional[str] = None
|
| 32 |
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
|
| 36 |
class DescriptionModeGenerateParam(BaseModel):
|
| 37 |
"""Generate with Song Description"""
|
| 38 |
|
| 39 |
-
gpt_description_prompt:
|
| 40 |
-
make_instrumental: bool = False
|
| 41 |
mv: str = Field(
|
| 42 |
default='chirp-v3-0',
|
| 43 |
description="model version, default: chirp-v3-0",
|
|
@@ -50,4 +54,4 @@ class DescriptionModeGenerateParam(BaseModel):
|
|
| 50 |
)
|
| 51 |
|
| 52 |
generation_type: str = "TEXT"
|
| 53 |
-
user_uploaded_images_b64:
|
|
|
|
| 30 |
)
|
| 31 |
continue_clip_id: Optional[str] = None
|
| 32 |
|
| 33 |
+
generation_type: str = "TEXT"
|
| 34 |
+
negative_tags:list = []
|
| 35 |
+
infill_start_s:Optional[int] = None
|
| 36 |
+
infill_end_s:Optional[int] = None
|
| 37 |
+
task:Optional[str] = ""
|
| 38 |
|
| 39 |
|
| 40 |
class DescriptionModeGenerateParam(BaseModel):
|
| 41 |
"""Generate with Song Description"""
|
| 42 |
|
| 43 |
+
gpt_description_prompt:str = Field( max_length=200)
|
| 44 |
+
make_instrumental: bool = False # True纯音乐,False有歌词
|
| 45 |
mv: str = Field(
|
| 46 |
default='chirp-v3-0',
|
| 47 |
description="model version, default: chirp-v3-0",
|
|
|
|
| 54 |
)
|
| 55 |
|
| 56 |
generation_type: str = "TEXT"
|
| 57 |
+
user_uploaded_images_b64:List[str] = []
|