You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
103 lines
2.9 KiB
103 lines
2.9 KiB
#coding=utf8
|
|
import sys
|
|
import requests
|
|
import json
|
|
import time
|
|
|
|
# #url = 'http://0.0.0.0:5033'
|
|
# """
|
|
# url = 'http://20.0.2.6:5055/classify_event'
|
|
# url = 'http://20.0.2.6:5055/is_about_china'
|
|
# url = 'http://20.0.2.6:5055/associated_words'
|
|
# """
|
|
# url = 'http://127.0.0.1:9008/paper'
|
|
#
|
|
# # url_file ="http://172.18.1.130:9985/group33/default/20230415/09/15/1/“GF-1”影像质量评价及矿区土地利用分类潜力研究_陈明.docx"
|
|
# url_file="/opt/Project_kongtianyuan/inputfile/"
|
|
# filename = "“GF-1”影像质量评价及矿区土地利用分类潜力研究"
|
|
#
|
|
# data = {"url":url_file,"filename":filename}
|
|
# data_str = json.dumps(data)
|
|
#
|
|
# r = requests.post(url,data=str(data_str))
|
|
# print(r.text)
|
|
# # res =json.loads(r.text)
|
|
# # print(res)
|
|
raw_data={
|
|
"metadata":{
|
|
"address":"http://172.24.12.126:9013/ASR/",
|
|
"index":0,
|
|
"admin":{
|
|
"datasource":"2_任务提取"
|
|
},
|
|
"output":{
|
|
"output_type":"table",
|
|
"label_col":[
|
|
"ASR识别内容"
|
|
]
|
|
},
|
|
"input":{
|
|
"input_type":"text",
|
|
"label":[
|
|
"2_任务提取"
|
|
]
|
|
},
|
|
"user":{
|
|
"tag":""
|
|
}
|
|
},
|
|
"data":{
|
|
"1_文件上传":"{\"fileId\":\"53aa330b4e484c9bdeb7ff35e335a6f6\",\"fileName\":\"lKTZNen6aak.mp4\",\"filePath\":\"/group33/default/20230828/15/48/1/lKTZNen6aak.mp4\",\"fileType\":\"mp4\",\"fileUrl\":\"http://172.18.1.130:9985/group33/default/20230828/15/48/1/lKTZNen6aak.mp4\",\"ossPath\":\"/group33/default/20230828/15/48/1/lKTZNen6aak.mp4\"}",
|
|
"businessKey":"19615b029da477fb",
|
|
"2_任务提取":"[{\"fileId\":\"53aa330b4e484c9bdeb7ff35e335a6f6\",\"fileName\":\"lKTZNen6aak.mp4\",\"filePath\":\"/group33/default/20230828/15/48/1/lKTZNen6aak.mp4\",\"fileType\":\"mp4\",\"fileUrl\":\"http://172.18.1.130:9985/group33/default/20230828/15/48/1/lKTZNen6aak.mp4\",\"ossPath\":\"/group33/default/20230828/15/48/1/lKTZNen6aak.mp4\"}]"
|
|
},
|
|
"created":1691004265000,
|
|
"module":"ASR",
|
|
"start_tag":"false",
|
|
"multi_branch":0,
|
|
"last_edit":1693417201000,
|
|
"next_app_id":[
|
|
{
|
|
"start_id":154,
|
|
"edge_id":75,
|
|
"end_id":155
|
|
}
|
|
],
|
|
"transfer_id":3,
|
|
"version":1,
|
|
"blueprint_id":4,
|
|
"scenes_id":5,
|
|
"scenario":{
|
|
"dataloss":1,
|
|
"autoCommitTriggerLast":1,
|
|
"maxErrors":3,
|
|
"autoCommit":1,
|
|
"freshVariables":1
|
|
},
|
|
"wait_condition":[
|
|
|
|
],
|
|
"scheduling":{
|
|
"interval":-1,
|
|
"type":"single"
|
|
},
|
|
"name":"ASR",
|
|
"businessKey":"19615b029da477fb",
|
|
"id":154,
|
|
"position":[
|
|
100,
|
|
200
|
|
],
|
|
"describe":"ASR识别"
|
|
}
|
|
allFile = raw_data["data"]["2_任务提取"]
|
|
currentFile = eval(allFile)
|
|
print(currentFile)
|
|
print(type(currentFile))
|
|
# filejson = json.loads(currentFile)
|
|
# file = currentFile["fileUrl"]
|
|
# fileName = currentFile["fileName"]
|
|
|
|
# print(file)
|
|
|
|
|