Commit 08cc5aeb authored by 赵威's avatar 赵威

update name

parent 57dd9d98
<?xml version="1.0" encoding="utf-8"?>
<gm_rpcd_config>
<info config_name="app" version="1.0"/>
<config name="application_name" value="strategy_embedding"/>
<config name="service_list">
<element value="strategy_embedding"/>
</config>
<config name="initializer_list">
<element value="search.views.user_portrait"/>
</config>
<config name="statuses" value="strategy_embedding.system:statuses"/>
</gm_rpcd_config>
......@@ -158,9 +158,9 @@ def save_diary_similarity(load_file, index_path, face_to_vec_f):
def main():
base_dir = os.getcwd()
print("base_dir: " + base_dir)
model_diry = os.path.join(base_dir, "_models")
facerec_model_path = os.path.join(model_diry, "dlib_face_recognition_resnet_model_v1.dat")
shape_model_path = os.path.join(model_diry, "shape_predictor_68_face_landmarks.dat")
model_dir = os.path.join(base_dir, "_models")
facerec_model_path = os.path.join(model_dir, "dlib_face_recognition_resnet_model_v1.dat")
shape_model_path = os.path.join(model_dir, "shape_predictor_68_face_landmarks.dat")
faiss_index_path = os.path.join(base_dir, "_index", "current.index")
diary_after_cover_vec_file = "./diary_after_cover_vec.txt"
......
def statuses(request):
ok = True
errors = {}
resp = {"ok": ok, "errors": errors}
# check es
# es_ok, error = _check_es()
# if not es_ok:
# errors.update(error)
# # check redis
# mysql_ok, error = _check_mysql()
# if not mysql_ok:
# errors.update(error)
# redis_ok, error = _check_redis()
# if not redis_ok:
# errors.update(error)
# celery_ok, error = _check_celery()
# if not celery_ok:
# errors.update(error)
# resp['ok'] = es_ok and mysql_ok and redis_ok and celery_ok
resp["ok"] = True
return resp
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment