Git Product home page Git Product logo

flare's Introduction

title emoji colorFrom colorTo sdk sdk_version app_file pinned license
FLARE
๐Ÿ 
pink
pink
gradio
3.34.0
app.py
false
mit

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

Add New Language

  1. Add new [LAN]_result.csv, which should be format like
Model Task Metric 1 Task Metric 2
GPT-4 0.28 0
  1. Add new COL variable on app.py
SPA_COLS = [
    ("Model", "str"),
    ("MultiFin-F1", "number"),
]
  1. Add new Col categorization on app.py
spa_cols = [col_name for col_name, _ in SPA_COLS]
spa_cates = {
    "Sentiment Analysis": ["Model", "TSA-Acc", "TSA-F1", "FinanceES-Acc", "FinanceES-F1"],
    "Examination": ["Model", "EFP-Acc", "EFP-F1", "EFPA-Acc", "EFPA-F1"],
    "Classification": ["Model", "MultiFin-Acc", "MultiFin-F1"],
    "Text Summarization": ["Model", "FNS-Rouge1", "FNS-Rouge2", "FNS-RougeL",],
}
  1. Add new key to lan dict on app.py
df_lang = {
    "English": create_df_dict("english", eng_cols, eng_cates),
    "Spanish": create_df_dict("spanish", spa_cols, spa_cates),
}
  1. If new categories need to define new column selection rules, add it like:
elif key == "Credit Scoring":
    tdf = tdf[[val for val in tdf.columns if "Acc" in val]]
elif key == "Text Summarization":
    tdf = tdf[[val for val in tdf.columns if "Bert" in val or "Rouge" in val]]

flare's People

Contributors

jiminhuang avatar yy0649 avatar ascrx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.