grg commited on
Commit
d7c0630
β€’
1 Parent(s): 8ed231f

Adding additional descriptions (improving the text) and adding link to the huggingface dataset.

Browse files
This view is limited to 50 files because it contains too many changes. Β  See raw diff
Files changed (50) hide show
  1. app.py +16 -4
  2. static/{figures β†’ models_data}/Mistral-7B-Instruct-v0.1/cfa_metrics.csv +0 -0
  3. static/{figures β†’ models_data}/Mistral-7B-Instruct-v0.1/matrix.svg +0 -0
  4. static/{figures β†’ models_data}/Mistral-7B-Instruct-v0.1/ranks.svg +0 -0
  5. static/{figures β†’ models_data}/Mistral-7B-Instruct-v0.1/structure.svg +0 -0
  6. static/{figures β†’ models_data}/Mistral-7B-Instruct-v0.2/cfa_metrics.csv +0 -0
  7. static/{figures β†’ models_data}/Mistral-7B-Instruct-v0.2/matrix.svg +0 -0
  8. static/{figures β†’ models_data}/Mistral-7B-Instruct-v0.2/ranks.svg +0 -0
  9. static/{figures β†’ models_data}/Mistral-7B-Instruct-v0.2/structure.svg +0 -0
  10. static/{figures β†’ models_data}/Mistral-7B-Instruct-v0.3/cfa_metrics.csv +0 -0
  11. static/{figures β†’ models_data}/Mistral-7B-Instruct-v0.3/matrix.svg +0 -0
  12. static/{figures β†’ models_data}/Mistral-7B-Instruct-v0.3/ranks.svg +0 -0
  13. static/{figures β†’ models_data}/Mistral-7B-Instruct-v0.3/structure.svg +0 -0
  14. static/{figures β†’ models_data}/Mistral-Large-Instruct-2407/cfa_metrics.csv +0 -0
  15. static/{figures β†’ models_data}/Mistral-Large-Instruct-2407/matrix.svg +0 -0
  16. static/models_data/Mistral-Large-Instruct-2407/model_detail.html +1 -0
  17. static/{figures β†’ models_data}/Mistral-Large-Instruct-2407/ranks.svg +0 -0
  18. static/{figures β†’ models_data}/Mistral-Large-Instruct-2407/structure.svg +0 -0
  19. static/{figures β†’ models_data}/Mixtral-8x22B-Instruct-v0.1/cfa_metrics.csv +0 -0
  20. static/{figures β†’ models_data}/Mixtral-8x22B-Instruct-v0.1/matrix.svg +0 -0
  21. static/{figures β†’ models_data}/Mixtral-8x22B-Instruct-v0.1/ranks.svg +0 -0
  22. static/{figures β†’ models_data}/Mixtral-8x22B-Instruct-v0.1/structure.svg +0 -0
  23. static/{figures β†’ models_data}/Mixtral-8x7B-Instruct-v0.1/cfa_metrics.csv +0 -0
  24. static/{figures β†’ models_data}/Mixtral-8x7B-Instruct-v0.1/matrix.svg +0 -0
  25. static/{figures β†’ models_data}/Mixtral-8x7B-Instruct-v0.1/ranks.svg +0 -0
  26. static/{figures β†’ models_data}/Mixtral-8x7B-Instruct-v0.1/structure.svg +0 -0
  27. static/{figures β†’ models_data}/Qwen2-72B-Instruct/cfa_metrics.csv +0 -0
  28. static/{figures β†’ models_data}/Qwen2-72B-Instruct/matrix.svg +0 -0
  29. static/{figures β†’ models_data}/Qwen2-72B-Instruct/ranks.svg +0 -0
  30. static/{figures β†’ models_data}/Qwen2-72B-Instruct/structure.svg +0 -0
  31. static/{figures β†’ models_data}/Qwen2-7B-Instruct/cfa_metrics.csv +0 -0
  32. static/{figures β†’ models_data}/Qwen2-7B-Instruct/matrix.svg +0 -0
  33. static/{figures β†’ models_data}/Qwen2-7B-Instruct/ranks.svg +0 -0
  34. static/{figures β†’ models_data}/Qwen2-7B-Instruct/structure.svg +0 -0
  35. static/{figures β†’ models_data}/admin_questionnaire.svg +0 -0
  36. static/{figures β†’ models_data}/cardinal.svg +0 -0
  37. static/{figures β†’ models_data}/command_r_plus/cfa_metrics.csv +0 -0
  38. static/{figures β†’ models_data}/command_r_plus/matrix.svg +0 -0
  39. static/{figures β†’ models_data}/command_r_plus/ranks.svg +0 -0
  40. static/{figures β†’ models_data}/command_r_plus/structure.svg +0 -0
  41. static/{figures β†’ models_data}/dummy/cfa_metrics.csv +0 -0
  42. static/{figures β†’ models_data}/dummy/matrix.svg +0 -0
  43. static/{figures β†’ models_data}/dummy/ranks.svg +0 -0
  44. static/{figures β†’ models_data}/dummy/structure.svg +0 -0
  45. static/{figures β†’ models_data}/gpt-3.5-turbo-0125/cfa_metrics.csv +0 -0
  46. static/{figures β†’ models_data}/gpt-3.5-turbo-0125/matrix.svg +0 -0
  47. static/{figures β†’ models_data}/gpt-3.5-turbo-0125/ranks.svg +0 -0
  48. static/{figures β†’ models_data}/gpt-3.5-turbo-0125/structure.svg +0 -0
  49. static/{figures β†’ models_data}/gpt-4o-0513/cfa_metrics.csv +0 -0
  50. static/{figures β†’ models_data}/gpt-4o-0513/matrix.svg +0 -0
app.py CHANGED
@@ -2,8 +2,6 @@ import os
2
  import pandas as pd
3
  import utils
4
  import base64
5
- import shutil
6
- import zipfile
7
  from flask import Flask, render_template, request, redirect, url_for
8
  from postmarker.core import PostmarkClient
9
  from werkzeug.utils import secure_filename
@@ -61,7 +59,7 @@ def index():
61
  @app.route('/model/<model_name>')
62
  def model_detail(model_name):
63
 
64
- df = pd.read_csv(f'static/figures/{model_name}/cfa_metrics.csv')
65
 
66
  df = df.round(3)
67
  df.insert(0, '#', '')
@@ -78,7 +76,21 @@ def model_detail(model_name):
78
  classes = 'table table-striped table-bordered'
79
  cfa_table_html = df.to_html(classes=classes, escape=False, index=False)
80
 
81
- return render_template('model_detail.html', model_name=model_name, cfa_table_html=cfa_table_html)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
 
83
  @app.route('/about')
84
  def about():
 
2
  import pandas as pd
3
  import utils
4
  import base64
 
 
5
  from flask import Flask, render_template, request, redirect, url_for
6
  from postmarker.core import PostmarkClient
7
  from werkzeug.utils import secure_filename
 
59
  @app.route('/model/<model_name>')
60
  def model_detail(model_name):
61
 
62
+ df = pd.read_csv(f'static/models_data/{model_name}/cfa_metrics.csv')
63
 
64
  df = df.round(3)
65
  df.insert(0, '#', '')
 
76
  classes = 'table table-striped table-bordered'
77
  cfa_table_html = df.to_html(classes=classes, escape=False, index=False)
78
 
79
+ # Load model specific description
80
+ model_detail_file = f'static/models_data/{model_name}/model_detail.html'
81
+ if os.path.exists(model_detail_file):
82
+ # If the file exists, open and read the HTML file as a string
83
+ with open(model_detail_file, 'r', encoding='utf-8') as file:
84
+ model_detail = file.read()
85
+ else:
86
+ model_detail = "<p>No additional detail is provided for this model.</p>"
87
+
88
+ return render_template(
89
+ 'model_detail.html',
90
+ model_name=model_name,
91
+ model_detail=model_detail,
92
+ cfa_table_html=cfa_table_html
93
+ )
94
 
95
  @app.route('/about')
96
  def about():
static/{figures β†’ models_data}/Mistral-7B-Instruct-v0.1/cfa_metrics.csv RENAMED
File without changes
static/{figures β†’ models_data}/Mistral-7B-Instruct-v0.1/matrix.svg RENAMED
File without changes
static/{figures β†’ models_data}/Mistral-7B-Instruct-v0.1/ranks.svg RENAMED
File without changes
static/{figures β†’ models_data}/Mistral-7B-Instruct-v0.1/structure.svg RENAMED
File without changes
static/{figures β†’ models_data}/Mistral-7B-Instruct-v0.2/cfa_metrics.csv RENAMED
File without changes
static/{figures β†’ models_data}/Mistral-7B-Instruct-v0.2/matrix.svg RENAMED
File without changes
static/{figures β†’ models_data}/Mistral-7B-Instruct-v0.2/ranks.svg RENAMED
File without changes
static/{figures β†’ models_data}/Mistral-7B-Instruct-v0.2/structure.svg RENAMED
File without changes
static/{figures β†’ models_data}/Mistral-7B-Instruct-v0.3/cfa_metrics.csv RENAMED
File without changes
static/{figures β†’ models_data}/Mistral-7B-Instruct-v0.3/matrix.svg RENAMED
File without changes
static/{figures β†’ models_data}/Mistral-7B-Instruct-v0.3/ranks.svg RENAMED
File without changes
static/{figures β†’ models_data}/Mistral-7B-Instruct-v0.3/structure.svg RENAMED
File without changes
static/{figures β†’ models_data}/Mistral-Large-Instruct-2407/cfa_metrics.csv RENAMED
File without changes
static/{figures β†’ models_data}/Mistral-Large-Instruct-2407/matrix.svg RENAMED
File without changes
static/models_data/Mistral-Large-Instruct-2407/model_detail.html ADDED
@@ -0,0 +1 @@
 
 
1
+ <p>This model was released by Mistral AI</p>
static/{figures β†’ models_data}/Mistral-Large-Instruct-2407/ranks.svg RENAMED
File without changes
static/{figures β†’ models_data}/Mistral-Large-Instruct-2407/structure.svg RENAMED
File without changes
static/{figures β†’ models_data}/Mixtral-8x22B-Instruct-v0.1/cfa_metrics.csv RENAMED
File without changes
static/{figures β†’ models_data}/Mixtral-8x22B-Instruct-v0.1/matrix.svg RENAMED
File without changes
static/{figures β†’ models_data}/Mixtral-8x22B-Instruct-v0.1/ranks.svg RENAMED
File without changes
static/{figures β†’ models_data}/Mixtral-8x22B-Instruct-v0.1/structure.svg RENAMED
File without changes
static/{figures β†’ models_data}/Mixtral-8x7B-Instruct-v0.1/cfa_metrics.csv RENAMED
File without changes
static/{figures β†’ models_data}/Mixtral-8x7B-Instruct-v0.1/matrix.svg RENAMED
File without changes
static/{figures β†’ models_data}/Mixtral-8x7B-Instruct-v0.1/ranks.svg RENAMED
File without changes
static/{figures β†’ models_data}/Mixtral-8x7B-Instruct-v0.1/structure.svg RENAMED
File without changes
static/{figures β†’ models_data}/Qwen2-72B-Instruct/cfa_metrics.csv RENAMED
File without changes
static/{figures β†’ models_data}/Qwen2-72B-Instruct/matrix.svg RENAMED
File without changes
static/{figures β†’ models_data}/Qwen2-72B-Instruct/ranks.svg RENAMED
File without changes
static/{figures β†’ models_data}/Qwen2-72B-Instruct/structure.svg RENAMED
File without changes
static/{figures β†’ models_data}/Qwen2-7B-Instruct/cfa_metrics.csv RENAMED
File without changes
static/{figures β†’ models_data}/Qwen2-7B-Instruct/matrix.svg RENAMED
File without changes
static/{figures β†’ models_data}/Qwen2-7B-Instruct/ranks.svg RENAMED
File without changes
static/{figures β†’ models_data}/Qwen2-7B-Instruct/structure.svg RENAMED
File without changes
static/{figures β†’ models_data}/admin_questionnaire.svg RENAMED
File without changes
static/{figures β†’ models_data}/cardinal.svg RENAMED
File without changes
static/{figures β†’ models_data}/command_r_plus/cfa_metrics.csv RENAMED
File without changes
static/{figures β†’ models_data}/command_r_plus/matrix.svg RENAMED
File without changes
static/{figures β†’ models_data}/command_r_plus/ranks.svg RENAMED
File without changes
static/{figures β†’ models_data}/command_r_plus/structure.svg RENAMED
File without changes
static/{figures β†’ models_data}/dummy/cfa_metrics.csv RENAMED
File without changes
static/{figures β†’ models_data}/dummy/matrix.svg RENAMED
File without changes
static/{figures β†’ models_data}/dummy/ranks.svg RENAMED
File without changes
static/{figures β†’ models_data}/dummy/structure.svg RENAMED
File without changes
static/{figures β†’ models_data}/gpt-3.5-turbo-0125/cfa_metrics.csv RENAMED
File without changes
static/{figures β†’ models_data}/gpt-3.5-turbo-0125/matrix.svg RENAMED
File without changes
static/{figures β†’ models_data}/gpt-3.5-turbo-0125/ranks.svg RENAMED
File without changes
static/{figures β†’ models_data}/gpt-3.5-turbo-0125/structure.svg RENAMED
File without changes
static/{figures β†’ models_data}/gpt-4o-0513/cfa_metrics.csv RENAMED
File without changes
static/{figures β†’ models_data}/gpt-4o-0513/matrix.svg RENAMED
File without changes