John Graham Reynolds
commited on
Commit
·
718583d
1
Parent(s):
41d497e
add examples as pandas dataframe
Browse files
app.py
CHANGED
@@ -97,8 +97,8 @@ space = gr.Interface(
|
|
97 |
article=article,
|
98 |
examples=[
|
99 |
[
|
100 |
-
[[
|
101 |
-
[["f1", "weighted"],
|
102 |
]
|
103 |
]
|
104 |
cache_examples=False
|
|
|
97 |
article=article,
|
98 |
examples=[
|
99 |
[
|
100 |
+
pd.DataFrame(columns=["Predicted Class Label", "Actual Class Label"], data=[[0,1],[1,1],[2,2],[1,0],[0,0]]),
|
101 |
+
pd.DataFrame(columns=["Metric", "Averaging Type"], data=[["f1", "weighted"],["precision", "micro"],["recall", "macro"]])
|
102 |
]
|
103 |
]
|
104 |
cache_examples=False
|