chinmayc3 commited on
Commit
aafbd13
·
1 Parent(s): ba6f8aa

Added model descriptions in about and scoreboard page

Browse files
Files changed (2) hide show
  1. pages/about.py +17 -1
  2. pages/scoreboard.py +3 -7
pages/about.py CHANGED
@@ -3,6 +3,7 @@ from pages.scoreboard import validate_email
3
  from pages.scoreboard import write_email
4
 
5
 
 
6
  st.title("About")
7
 
8
  st.markdown(
@@ -29,8 +30,23 @@ st.markdown(
29
  """ * The Scoreboard shows the performance of the models in the Arena. The user can see the overall performance of the models, the model with the highest win rate, and the model with the most appearances. The user can also see the win rates of each model, as well as the appearance distribution of each model."""
30
  )
31
 
 
 
 
 
 
 
 
 
 
 
 
32
  st.markdown("## Future Scope")
33
- st.markdown("""* Add more languages""")
 
 
 
 
34
 
35
  st.markdown(
36
  "## Contact Us"
 
3
  from pages.scoreboard import write_email
4
 
5
 
6
+
7
  st.title("About")
8
 
9
  st.markdown(
 
30
  """ * The Scoreboard shows the performance of the models in the Arena. The user can see the overall performance of the models, the model with the highest win rate, and the model with the most appearances. The user can also see the win rates of each model, as well as the appearance distribution of each model."""
31
  )
32
 
33
+ st.markdown("## Model Descriptions")
34
+
35
+ st.markdown("""
36
+ * Ori Prime - Foundational, large, and stable.
37
+ * Ori Swift - Lighter and faster than Ori Prime.
38
+ * Ori Apex - The top-performing model, fast and stable.
39
+ * Ori Apex XT - Enhanced with more training, though slightly less stable than Ori Apex.
40
+ * Deepgram - Deepgram Nova-2 API
41
+ * Azure - Azure Speech Services API
42
+ """)
43
+
44
  st.markdown("## Future Scope")
45
+ st.markdown("""
46
+ * Add more languages
47
+ * Add more models
48
+ * Upload an audio
49
+ """)
50
 
51
  st.markdown(
52
  "## Contact Us"
pages/scoreboard.py CHANGED
@@ -27,7 +27,7 @@ def get_model_abbreviation(model_name):
27
  abbrev_map = {
28
  'Ori Apex': 'Ori Apex',
29
  'Ori Apex XT': 'Ori Apex XT',
30
- 'deepgram': 'DG',
31
  'Ori Swift': 'Ori Swift',
32
  'Ori Prime': 'Ori Prime',
33
  'azure' : 'Azure'
@@ -94,7 +94,7 @@ def create_appearance_chart(metrics):
94
  values=appearances,
95
  names=[get_model_abbreviation(model) for model in models],
96
  title='Model Appearances Distribution',
97
- hover_data=[models]
98
  )
99
 
100
  return fig
@@ -135,7 +135,6 @@ def create_head_to_head_matrix(df):
135
 
136
  def create_elo_chart(df):
137
  fig = make_subplots(rows=1, cols=1,
138
- subplot_titles=('ELO Rating Progression'),
139
  row_heights=[0.7])
140
 
141
  for column in df.columns:
@@ -156,7 +155,6 @@ def create_elo_chart(df):
156
  )
157
 
158
  fig.update_xaxes(title_text='Match Number', row=1, col=1)
159
- fig.update_xaxes(title_text='Models', row=2, col=1)
160
 
161
  return fig
162
 
@@ -214,7 +212,7 @@ def dashboard():
214
  "Ori Swift": "Lighter and faster than Ori Prime.",
215
  "Ori Apex": "The top-performing model, fast and stable.",
216
  "Ori Apex XT": "Enhanced with more training, though slightly less stable than Ori Apex.",
217
- "DG" : "Deepgram Nova-2 API",
218
  "Azure" : "Azure Speech Services API"
219
  }
220
 
@@ -278,8 +276,6 @@ def dashboard():
278
  matrix_chart = create_head_to_head_matrix(st.session_state.df)
279
  st.plotly_chart(matrix_chart, use_container_width=True)
280
 
281
- st.header('Full Dataframe')
282
- st.dataframe(st.session_state.df.drop(['path','Ori Apex_duration', 'Ori Apex XT_duration', 'deepgram_duration', 'Ori Swift_duration', 'Ori Prime_duration','azure_duration','email'],axis=1),use_container_width=True)
283
  else:
284
  st.write("No Data to show")
285
 
 
27
  abbrev_map = {
28
  'Ori Apex': 'Ori Apex',
29
  'Ori Apex XT': 'Ori Apex XT',
30
+ 'deepgram': 'Deepgram',
31
  'Ori Swift': 'Ori Swift',
32
  'Ori Prime': 'Ori Prime',
33
  'azure' : 'Azure'
 
94
  values=appearances,
95
  names=[get_model_abbreviation(model) for model in models],
96
  title='Model Appearances Distribution',
97
+ # hover_data=[models]
98
  )
99
 
100
  return fig
 
135
 
136
  def create_elo_chart(df):
137
  fig = make_subplots(rows=1, cols=1,
 
138
  row_heights=[0.7])
139
 
140
  for column in df.columns:
 
155
  )
156
 
157
  fig.update_xaxes(title_text='Match Number', row=1, col=1)
 
158
 
159
  return fig
160
 
 
212
  "Ori Swift": "Lighter and faster than Ori Prime.",
213
  "Ori Apex": "The top-performing model, fast and stable.",
214
  "Ori Apex XT": "Enhanced with more training, though slightly less stable than Ori Apex.",
215
+ "Deepgram" : "Deepgram Nova-2 API",
216
  "Azure" : "Azure Speech Services API"
217
  }
218
 
 
276
  matrix_chart = create_head_to_head_matrix(st.session_state.df)
277
  st.plotly_chart(matrix_chart, use_container_width=True)
278
 
 
 
279
  else:
280
  st.write("No Data to show")
281