mmathys commited on
Commit
a48afe6
1 Parent(s): 96c6c0b

finish safety card

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
4
 
5
  df = pd.read_csv("./data.csv")
6
 
7
- def sentence_builder(model, dataset, displayed_metrics):
8
  row = df[df["friendly_name"] == model]
9
  str = (
10
  f"## <span style='font-size: 16px;'>🚧 Performance and safety of <code style='font-weight: 400'>{model}</code></span>\n"
@@ -35,7 +35,7 @@ def sentence_builder(model, dataset, displayed_metrics):
35
 
36
 
37
  iface = gr.Interface(
38
- sentence_builder,
39
  [
40
  gr.Dropdown(
41
  list(df["friendly_name"]),
 
4
 
5
  df = pd.read_csv("./data.csv")
6
 
7
+ def md_builder(model, dataset, displayed_metrics):
8
  row = df[df["friendly_name"] == model]
9
  str = (
10
  f"## <span style='font-size: 16px;'>🚧 Performance and safety of <code style='font-weight: 400'>{model}</code></span>\n"
 
35
 
36
 
37
  iface = gr.Interface(
38
+ md_builder,
39
  [
40
  gr.Dropdown(
41
  list(df["friendly_name"]),