From a91b0808c09ea51ba7668d2d79ece3ac42a21db3 Mon Sep 17 00:00:00 2001 From: mdingemanse Date: Fri, 19 Apr 2024 13:27:41 +0200 Subject: [PATCH] one step back, one step forward --- scripts/consolidate_csv.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/scripts/consolidate_csv.py b/scripts/consolidate_csv.py index fa89b65..d163d44 100644 --- a/scripts/consolidate_csv.py +++ b/scripts/consolidate_csv.py @@ -101,13 +101,13 @@ def write_simplified_html(df): html_table = '\n' html_table += '\n' html_table += '\n' - html_table += '\n' + html_table += '\n' html_table += '\n' html_table += '\n' # loop through projects projects = df.index.tolist() for p in projects: - # add data by looping through each data row and converting it to a row for the html table. + # add data by looping through each row and converting it 2 rows for the html table. # also add classes to the '.format(cl, link, notes, symbol) r1_html += "\n" html_table += r1_html + # second row + #r2_html = ''.format(df.loc[p, "org.link"], df.loc[p, "org.name"], df.loc[p, "org.name"]) + r2_html = ''.format(df.loc[p, "project.link"], df.loc[p, "project.notes"], df.loc[p, "org.name"]) + r2_html += ''.format(df.loc[p, "project.llmbase"], df.loc[p, "project.rlbase"]) + #r2_html += '\n'.format(source_link, source_file) + r2_html += '\n'.format(df.loc[p, "org.link"], df.loc[p, "org.name"]) + html_table += r2_html # closing tags html_table += '\n' html_table += '
ProjectAvailabilityDocumentationAccess
(maker, bases, URL)Open codeLLM dataLLM weightsRL dataRL weightsLicenseCodeArchitecturePreprintPaperModelcardDatasheetPackageAPI
Open codeLLM dataLLM weightsRL dataRL weightsLicenseCodeArchitecturePreprintPaperModelcardDatasheetPackageAPI
elements for colour coding and links to source of the class judgement: https://github.com/liesenf/awesome-open-chatgpt/issues/12 cells = ["opencode", "llmdata", "llmweights", "rldata", "rlweights", "license", "code", "architecture", "preprint", "paper", "modelcard", "datasheet", "package", "api"] # first row @@ -123,6 +123,13 @@ def write_simplified_html(df): r1_html += '{}
{}
{}LLM base: {}RL base: {}
\n' @@ -174,6 +181,8 @@ def create_figure(figure): # sort by openness and project name df = df.sort_index(ascending=False).sort_values(by="openness", ascending=False) table = write_html(df) -figure = write_simplified_html(df) create_index(table) +figure = write_simplified_html(df) create_figure(figure) + +df.to_csv(df.csv, index=False)