This commit is contained in:
30404 2024-07-14 14:41:52 +08:00
commit d3d2d66478
3 changed files with 7 additions and 5 deletions

View File

@ -130,15 +130,16 @@ function Operation2() {
student_ID,
operateID
})
const result=detectionSrc.data['result']
if(result==='NO'){
const result=detectionSrc.data
if(result.includes('NO')){
alert('连接失败')
setTrainScore(0)
}else{
alert('连接成功')
setTrainScore(50)
}
}catch{
}catch(err){
console.log(err)
alert('detection出错 ')
}
}

View File

@ -1,6 +1,7 @@
import json
import traceback
import yaml
from kubernetes import client, config
from flask import jsonify