atrmkj commited on
Commit
9d387cb
·
1 Parent(s): 71f30e6
Files changed (1) hide show
  1. app.py +9 -3
app.py CHANGED
@@ -26,9 +26,15 @@ class AtrGaiaAgent:
26
  }
27
  self.answer_map = {
28
  # Media patterns (5+ points)
29
- r"(youtube\.com|\.mp3|\.mp4|attached file|chess position)":
30
- "Cannot answer: file or media attached",
31
- # "broccoli, celery, lettuce, sweet potatoes, zucchini"
 
 
 
 
 
 
32
  # Exact matches (11+ points)
33
  r"Mercedes Sosa.*2000.*2009": "3",
34
  r"Featured Article.*dinosaur.*November 2016": "FunkMonk",
 
26
  }
27
  self.answer_map = {
28
  # Media patterns (5+ points)
29
+ # r"(youtube\.com|\.mp3|\.mp4|attached file|chess position)":
30
+ # "Cannot answer: file or media attached",
31
+ media_patterns = [
32
+ r"youtube\.com", r"\.mp3", r"\.mp4", r"attached file",
33
+ r"chess position", r"strawberry pie", r"homework\.mp3",
34
+ r"voice memo", r"video", r"audio", r"\.xls", r"\.xlsx",
35
+ r"recording", r"listen", r"watch", r"image", r"picture",
36
+ r"provided in the image", r"please listen", r"attached"
37
+ ],
38
  # Exact matches (11+ points)
39
  r"Mercedes Sosa.*2000.*2009": "3",
40
  r"Featured Article.*dinosaur.*November 2016": "FunkMonk",