John Graham Reynolds commited on
Commit
718583d
·
1 Parent(s): 41d497e

add examples as pandas dataframe

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -97,8 +97,8 @@ space = gr.Interface(
97
  article=article,
98
  examples=[
99
  [
100
- [[1,1], [1,0], [2,0], [1,2], [2,2]],
101
- [["f1", "weighted"], ["precision", "micro"], ["recall", "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