zhuohan-7 commited on
Commit
36e6ec3
·
verified ·
1 Parent(s): 60dceba

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. app/content.py +1 -1
  2. app/draw_diagram.py +3 -3
  3. app/pages.py +2 -2
app/content.py CHANGED
@@ -6,7 +6,7 @@ asr_datsets = {'LibriSpeech-Test-Clean': 'aa',
6
  'Earnings21-Test': 'ff',
7
  'Earnings22-Test': 'gg',
8
  'Tedlium3-Test': 'hh',
9
- 'Tedlium3-Longform-Test': 'ii',
10
  'IMDA-Part1-ASR-Test': 'jj',
11
  'IMDA-Part2-ASR-Test': 'kk'
12
  }
 
6
  'Earnings21-Test': 'ff',
7
  'Earnings22-Test': 'gg',
8
  'Tedlium3-Test': 'hh',
9
+ 'Tedlium3-Long-form-Test': 'ii',
10
  'IMDA-Part1-ASR-Test': 'jj',
11
  'IMDA-Part2-ASR-Test': 'kk'
12
  }
app/draw_diagram.py CHANGED
@@ -52,8 +52,8 @@ def draw(folder_name, category_name, dataset_name, metrics):
52
  if len(chart_data) == 0:
53
  return
54
 
55
- min_value = round(chart_data.iloc[:, 1::].min().min() - 0.1, 1)
56
- max_value = round(chart_data.iloc[:, 1::].max().max() + 0.1, 1)
57
 
58
  options = {
59
  "title": {"text": f"{display_names[folder_name.upper()]}"},
@@ -117,7 +117,7 @@ def draw(folder_name, category_name, dataset_name, metrics):
117
  '''
118
  show samples
119
  '''
120
- if dataset_name in ['Earnings21-Test', 'Earnings22-Test', 'Tedlium3-Longform-Test']:
121
  pass
122
  else:
123
  show_examples(category_name, dataset_name, chart_data['Model'].tolist())
 
52
  if len(chart_data) == 0:
53
  return
54
 
55
+ min_value = round(chart_data.iloc[:, 1::].min().min() - 0.1*int(chart_data.iloc[:, 1::].min().min(), 1)
56
+ max_value = round(chart_data.iloc[:, 1::].max().max() + 0.1*chart_data.iloc[:, 1::].max().max(), 1)
57
 
58
  options = {
59
  "title": {"text": f"{display_names[folder_name.upper()]}"},
 
117
  '''
118
  show samples
119
  '''
120
+ if dataset_name in ['Earnings21-Test', 'Earnings22-Test', 'Tedlium3-Long-form-Test']:
121
  pass
122
  else:
123
  show_examples(category_name, dataset_name, chart_data['Model'].tolist())
app/pages.py CHANGED
@@ -102,7 +102,7 @@ def asr():
102
  'Earnings21-Test',
103
  'Earnings22-Test',
104
  'Tedlium3-Test',
105
- 'Tedlium3-Longform-Test',
106
  'IMDA-Part1-ASR-Test',
107
  'IMDA-Part2-ASR-Test']
108
 
@@ -114,7 +114,7 @@ def asr():
114
  # with middle:
115
  # if filter_1 == filters_levelone[0]:
116
  # sort_leveltwo = ['LibriSpeech-Test-Clean', 'LibriSpeech-Test-Other', 'Common-Voice-15-En-Test', 'Peoples-Speech-Test',
117
- # 'GigaSpeech-Test', 'Tedlium3-Test','Tedlium3-Longform-Test', 'Earning-21-Test', 'Earning-22-Test']
118
  # elif filter_1 == filters_levelone[1]:
119
  # sort_leveltwo = ['CN-College-Listen-Test', 'SLUE-P2-SQA5-Test', 'DREAM-TTS-Test', 'Public-SG-SpeechQA-Test']
120
 
 
102
  'Earnings21-Test',
103
  'Earnings22-Test',
104
  'Tedlium3-Test',
105
+ 'Tedlium3-Long-form-Test',
106
  'IMDA-Part1-ASR-Test',
107
  'IMDA-Part2-ASR-Test']
108
 
 
114
  # with middle:
115
  # if filter_1 == filters_levelone[0]:
116
  # sort_leveltwo = ['LibriSpeech-Test-Clean', 'LibriSpeech-Test-Other', 'Common-Voice-15-En-Test', 'Peoples-Speech-Test',
117
+ # 'GigaSpeech-Test', 'Tedlium3-Test','Tedlium3-Long-form-Test', 'Earning-21-Test', 'Earning-22-Test']
118
  # elif filter_1 == filters_levelone[1]:
119
  # sort_leveltwo = ['CN-College-Listen-Test', 'SLUE-P2-SQA5-Test', 'DREAM-TTS-Test', 'Public-SG-SpeechQA-Test']
120