Spaces:
Runtime error
Runtime error
Update app.py
Browse files211 unmodified lines21221321421521621721846 unmodified lines265266267268269270271141 unmodified lines413414415416417418419420421211 unmodified linestext = f'{model.config.id2label[cl.item()]}: {p[cl]:0.2f}'ax.text(xmin-20, ymin-50, text, fontsize=10,bbox=dict(facecolor='yellow', alpha=0.5))plt.axis('off')c1.pyplot()def crop_tables(self, pil_img, prob, boxes, delta_xmin, delta_ymin, delta_xmax, delta_ymax):46 unmodified linesplt.axis('on')c2.pyplot()return rows, colsdef sort_table_featuresv2(self, rows:dict, cols:dict):141 unmodified linesdf = self.clean_dataframe(df)c3.dataframe(df)csv = self.convert_df(df)c3.download_button("Download table", csv, "file.csv", "text/csv", key='download-csv')return df211 unmodified lines21221321421521621721846 unmodified lines265266267268269270271141 unmodified lines413414415416417418419420421211 unmodified linestext = f'{model.config.id2label[cl.item()]}: {p[cl]:0.2f}'ax.text(xmin-20, ymin-50, text, fontsize=10,bbox=dict(facecolor='yellow', alpha=0.5))plt.axis('off')st.pyplot()def crop_tables(self, pil_img, prob, boxes, delta_xmin, delta_ymin, delta_xmax, delta_ymax):46 unmodified linesplt.axis('on')st.pyplot()return rows, colsdef sort_table_featuresv2(self, rows:dict, cols:dict):141 unmodified linesdf = self.clean_dataframe(df)st.dataframe(df)csv = self.convert_df(df)st.download_button("Download table", csv, "file.csv", "text/csv", key='download-csv')return df
app.py+4-4