DEBUG: json
This commit is contained in:
@@ -217,7 +217,7 @@ import requests
|
|||||||
def update_task_status(task:dict, status:str, progress:int):
|
def update_task_status(task:dict, status:str, progress:int):
|
||||||
task["status"] = status
|
task["status"] = status
|
||||||
task["progress"] = progress
|
task["progress"] = progress
|
||||||
requests.put(f"http://localhost:3000/api/drawing/{task['id']}", data=task)
|
requests.put(f"http://localhost:3000/api/drawing/{task['id']}", json=task)
|
||||||
|
|
||||||
def main_dev(opt):
|
def main_dev(opt):
|
||||||
model_name = '' # 默认模型
|
model_name = '' # 默认模型
|
||||||
|
Reference in New Issue
Block a user