rogerxavier
commited on
Commit
•
bb26efc
1
Parent(s):
8fcd983
Update api.py
Browse files
api.py
CHANGED
@@ -93,13 +93,6 @@ async def execute_py_file(file_name: str,background_tasks: BackgroundTasks):
|
|
93 |
|
94 |
|
95 |
|
96 |
-
# #收到图片后为了后台任务的顺序,单独设定一个函数依次将1去水印,2裁剪,3合并按照顺序加入后台任务队列
|
97 |
-
# @app.get("/execute_all_task")
|
98 |
-
# async def execute_all_task(background_tasks: BackgroundTasks):
|
99 |
-
# background_tasks.add_task(file_executer,"1removeMask")
|
100 |
-
# background_tasks.add_task(file_executer,"2magiDialogCut")
|
101 |
-
# background_tasks.add_task(file_executer,"3mergeDialogToVideo")
|
102 |
-
# return {"message": "Tasks added to the queue"}
|
103 |
|
104 |
#收到图片后为了后台任务的顺序,单独设定一个函数依次将自定义执行顺序加入队列 ,有默认参数的写后面
|
105 |
@app.get("/execute_all_task")
|
|
|
93 |
|
94 |
|
95 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
|
97 |
#收到图片后为了后台任务的顺序,单独设定一个函数依次将自定义执行顺序加入队列 ,有默认参数的写后面
|
98 |
@app.get("/execute_all_task")
|