Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ annotated_words = set(annot_df["text"].str.strip().str.lower().unique())
|
|
32 |
# Load the final annotated CSV with video links
|
33 |
video_df = pd.read_csv("annotated_vid_link.csv")
|
34 |
video_df["text_clean"] = video_df["text"].str.strip().str.lower()
|
35 |
-
video_lookup = dict(zip(video_df["text_clean"], video_df["
|
36 |
|
37 |
def get_youtube_link(input_text):
|
38 |
return video_lookup.get(input_text.strip().lower())
|
|
|
32 |
# Load the final annotated CSV with video links
|
33 |
video_df = pd.read_csv("annotated_vid_link.csv")
|
34 |
video_df["text_clean"] = video_df["text"].str.strip().str.lower()
|
35 |
+
video_lookup = dict(zip(video_df["text_clean"], video_df["Video URL"]))
|
36 |
|
37 |
def get_youtube_link(input_text):
|
38 |
return video_lookup.get(input_text.strip().lower())
|