update judge

This commit is contained in:
Charlie Holtz 2023-11-07 10:36:57 -05:00
parent 091f066859
commit 899bb437d8
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,6 @@ def summarize_analysis(analysis):
def main():
while True:
print("🧘 Judging posture...")
# path to your image
image_path = os.path.join(os.getcwd(), "./frames/frame.jpg")
@ -82,9 +81,11 @@ def main():
base64_image = encode_image(image_path)
# analyze posture
print("🧘 Looking at your posture...")
analysis = analyze_posture(base64_image)
# summarize analysis
print("🧘 Judging your posture...")
result = summarize_analysis(analysis)
result_json = json.loads(result)