hantupocong commited on
Commit
a76c3d5
·
verified ·
1 Parent(s): 3122b84

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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["video_url"]))
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())