Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -91,7 +91,11 @@ def plot(v, a):
|
|
91 |
return fig
|
92 |
|
93 |
def fx9(x):
|
94 |
-
|
|
|
|
|
|
|
|
|
95 |
|
96 |
with demo:
|
97 |
gr.Markdown(
|
|
|
91 |
return fig
|
92 |
|
93 |
def fx9(x):
|
94 |
+
pd.options.plotting.backend='matplotlib'
|
95 |
+
plt.close('all')
|
96 |
+
ax = x.plot(x='数据1',y='数据2',kind='bar',title='chinese word error!', color=["red","green","purple"])
|
97 |
+
ax.table(cellText=df.values,colLabels=df.columns,loc='bottom',colLoc='center')
|
98 |
+
return ax.get_figure()
|
99 |
|
100 |
with demo:
|
101 |
gr.Markdown(
|