updated comments
This commit is contained in:
7
ai.py
7
ai.py
@@ -37,10 +37,8 @@ def aistats():
|
||||
|
||||
|
||||
################################################################################
|
||||
# /run_ai_on -> CAM: needs more thought (what actual params, e.g list of file -
|
||||
# tick, but which face or faces? are we forcing a re-finding of unknown faces
|
||||
# or just looking for matches? (maybe in the long run there are different
|
||||
# routes, not params - stuff we will work out as we go)
|
||||
# /run_ai_on -> creates a job, with extras containing entry ids (eid-0, eid-1,
|
||||
# etc.) and person=all|dad, etc. Room to consider threshold, algo, etc.
|
||||
################################################################################
|
||||
@app.route("/run_ai_on", methods=["POST"])
|
||||
@login_required
|
||||
@@ -48,7 +46,6 @@ def run_ai_on():
|
||||
jex=[]
|
||||
for el in request.form:
|
||||
jex.append( JobExtra( name=f"{el}", value=request.form[el] ) )
|
||||
print( f"would create new job with extras={jex}" )
|
||||
job=NewJob( "run_ai_on", 0, None, jex )
|
||||
st.SetAlert("success")
|
||||
st.SetMessage( f"Created <a href=/job/{job.id}>Job #{job.id}</a> to Look for face(s) in selected file(s)")
|
||||
|
||||
Reference in New Issue
Block a user