Mbonea commited on
Commit
4a5f5e1
·
1 Parent(s): e66c876
Files changed (1) hide show
  1. App/Youtube/Schema.py +4 -5
App/Youtube/Schema.py CHANGED
@@ -1,6 +1,7 @@
1
  from pydantic import BaseModel, Field, HttpUrl
2
  from typing import Optional
3
 
 
4
  class YouTubeUploadTask(BaseModel):
5
  filename: HttpUrl = Field(..., description="URL of the video file to upload")
6
  title: str = Field(
@@ -23,9 +24,7 @@ class YouTubeUploadTask(BaseModel):
23
  max_length=500,
24
  description="Best seo tags for youtube based on the story",
25
  )
26
- thumbnail:Optional[str] = Field(
27
- ...,
28
- min_length=100,
29
- max_length=500,
30
- description="""Best image prompt based on the image description: here is an """,
31
  )
 
1
  from pydantic import BaseModel, Field, HttpUrl
2
  from typing import Optional
3
 
4
+
5
  class YouTubeUploadTask(BaseModel):
6
  filename: HttpUrl = Field(..., description="URL of the video file to upload")
7
  title: str = Field(
 
24
  max_length=500,
25
  description="Best seo tags for youtube based on the story",
26
  )
27
+ thumbnail: Optional[str] = Field(
28
+ default=None,
29
+ description="Optional image prompt for video thumbnail",
 
 
30
  )