clr commited on
Commit
d64823c
·
1 Parent(s): b12ae83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -55,9 +55,11 @@ def apply_filters(df,langname,gender):#,ageIS,ageFO):
55
 
56
  if langname=="Icelandic":
57
  df = datas.ds_i
58
- # ++ age by lang here... and faroese dialect ...
59
  elif langname =="Faroese":
60
  df = datas.ds_f
 
 
61
 
62
  if gender != "all":
63
  df = df.filter(lambda x: x["gender"].startswith(gender))
@@ -65,7 +67,6 @@ def apply_filters(df,langname,gender):#,ageIS,ageFO):
65
  #if age != "all":
66
  # df = df.filter(lambda x: x["age"] == age)
67
 
68
- #if age != "all":
69
 
70
  dfd = df.data.to_pandas()
71
  dfd = dfd.drop(columns=['audio', 'speaker_id','duration'])
 
55
 
56
  if langname=="Icelandic":
57
  df = datas.ds_i
58
+ # ++ age by lang here...
59
  elif langname =="Faroese":
60
  df = datas.ds_f
61
+ # filter by ages
62
+ # filter by dialect
63
 
64
  if gender != "all":
65
  df = df.filter(lambda x: x["gender"].startswith(gender))
 
67
  #if age != "all":
68
  # df = df.filter(lambda x: x["age"] == age)
69
 
 
70
 
71
  dfd = df.data.to_pandas()
72
  dfd = dfd.drop(columns=['audio', 'speaker_id','duration'])