Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
96da226
1
Parent(s):
9000c45
remove color param from plot
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ def plot_and_df(texts, preds):
|
|
74 |
)
|
75 |
# counts.reset_index(inplace=True)
|
76 |
return (
|
77 |
-
gr.BarPlot(counts_df, x="quality", y="count", sort=None
|
78 |
texts_df[texts_df["quality"] == "Low"][["text"]][:min(texts_df.shape[0], 20)],
|
79 |
texts_df[texts_df["quality"] == "Medium"][["text"]][:min(texts_df.shape[0], 20)],
|
80 |
texts_df[texts_df["quality"] == "High"][["text"]][:min(texts_df.shape[0], 20)],
|
|
|
74 |
)
|
75 |
# counts.reset_index(inplace=True)
|
76 |
return (
|
77 |
+
gr.BarPlot(counts_df, x="quality", y="count", sort=None),
|
78 |
texts_df[texts_df["quality"] == "Low"][["text"]][:min(texts_df.shape[0], 20)],
|
79 |
texts_df[texts_df["quality"] == "Medium"][["text"]][:min(texts_df.shape[0], 20)],
|
80 |
texts_df[texts_df["quality"] == "High"][["text"]][:min(texts_df.shape[0], 20)],
|