Spaces:
Runtime error
Runtime error
finish safety card
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
|
|
4 |
|
5 |
df = pd.read_csv("./data.csv")
|
6 |
|
7 |
-
def
|
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 |
-
|
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"]),
|