leolani / cltl-chatbots

Series of chatbots that demonstrate Leolani’s functionalities
Apache License 2.0
0 stars 1 forks source link

running `lets-chat_with_a_friend.ipynb` causes an error. #13

Open Dorteel opened 2 years ago

Dorteel commented 2 years ago
url [http://127.0.0.1:10004]()
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
/home/user/Repos/cltl-chatbots/src/notebooks/lets-chat_with_a_friend.ipynb Cell 19' in <module>
     [42](vscode-notebook-cell:/home/user/Repos/cltl-chatbots/src/notebooks/lets-chat_with_a_friend.ipynb#ch0000018?line=41)[ face = faces[0]
     ]()[43](vscode-notebook-cell:/home/user/Repos/cltl-chatbots/src/notebooks/lets-chat_with_a_friend.ipynb#ch0000018?line=42)[ if parse_id(face) is None:
     ]()[44](vscode-notebook-cell:/home/user/Repos/cltl-chatbots/src/notebooks/lets-chat_with_a_friend.ipynb#ch0000018?line=43)[     ### This is a stranger, we process the new face
---> ]()[45](vscode-notebook-cell:/home/user/Repos/cltl-chatbots/src/notebooks/lets-chat_with_a_friend.ipynb#ch0000018?line=44)[     human_id, human_name, _ = friend.get_to_know_person(scenario_ctrl, AGENT, parse_gender(face),
     ]()[46](vscode-notebook-cell:/home/user/Repos/cltl-chatbots/src/notebooks/lets-chat_with_a_friend.ipynb#ch0000018?line=45)[                                                         parse_age(face), face.face_id, face.embedding,
     ]()[47](vscode-notebook-cell:/home/user/Repos/cltl-chatbots/src/notebooks/lets-chat_with_a_friend.ipynb#ch0000018?line=46)[                                                         friends_path)
     ]()[49](vscode-notebook-cell:/home/user/Repos/cltl-chatbots/src/notebooks/lets-chat_with_a_friend.ipynb#ch0000018?line=48)[    # human_id = human_name  ### Hack because we cannot force the namespace through capsules, name and identity are the same till this is fixed
     ]()[50](vscode-notebook-cell:/home/user/Repos/cltl-chatbots/src/notebooks/lets-chat_with_a_friend.ipynb#ch0000018?line=49)[ 
     ]()[51](vscode-notebook-cell:/home/user/Repos/cltl-chatbots/src/notebooks/lets-chat_with_a_friend.ipynb#ch0000018?line=50)[ 
     ]()[52](vscode-notebook-cell:/home/user/Repos/cltl-chatbots/src/notebooks/lets-chat_with_a_friend.ipynb#ch0000018?line=51)[     ### Add the new information to the signal
     ]()[53](vscode-notebook-cell:/home/user/Repos/cltl-chatbots/src/notebooks/lets-chat_with_a_friend.ipynb#ch0000018?line=52)[     mention = f_util.create_face_mention(imageSignal, "front_camera", image_time,
     ]()[54](vscode-notebook-cell:/home/user/Repos/cltl-chatbots/src/notebooks/lets-chat_with_a_friend.ipynb#ch0000018?line=53)[                                          parse_bbox(face), human_id, human_name,
     ]()[55](vscode-notebook-cell:/home/user/Repos/cltl-chatbots/src/notebooks/lets-chat_with_a_friend.ipynb#ch0000018?line=54)[                                          parse_age(face), parse_gender(face), face.det_score)

NameError: name 'friend' is not defined]()