tomoya 3 주 전
부모
커밋
f4bfcb6eb9
2개의 변경된 파일18개의 추가작업 그리고 1개의 파일을 삭제
  1. 16 0
      backend/app/app/aianchor/main.py
  2. 2 1
      backend/app/app/api/api_v1/endpoints/edm_saas_api.py

+ 16 - 0
backend/app/app/aianchor/main.py

@@ -0,0 +1,16 @@
+import openshot
+
+
+if __name__=="__main__":
+  
+  working_dir = None
+  style = None
+  scene_len = 0
+  imgs = []
+  headlines = []
+  readers = []
+  clips = []
+  
+  
+  
+  

+ 2 - 1
backend/app/app/api/api_v1/endpoints/edm_saas_api.py

@@ -59,6 +59,7 @@ class UserInDB(BaseModel):
     
 class VideoInDB(BaseModel):
     id:int
+    title:str
     stored_filename:str
     progress_state:str
     created_datetime:str
@@ -130,7 +131,7 @@ async def update_detect_info(
   
     #video_create = schemas.VideoCreate(title=title, progress_state="PENDING", stored_filename=filename)
     #video = crud.video.create_with_owner(db=db, obj_in=video_create, owner_id=current_user.id)
-    video = {"stored_filename":filename, "progress_state":"PENDING", "owner_id":user.id}
+    video = {"title": title, "stored_filename":filename, "progress_state":"PENDING", "owner_id":user.id}
     response = supabase.table(VIDEO_TABLE).insert(video).execute()
     return_msg = {"video_message":"accepted", "accepted":True}
     video_data = response.data[0]