Spaces:
Runtime error
Runtime error
Update app.py
Browse files216 unmodified lines217218219220216 unmodified linestable_data = metrics_df.valuestable_columns = metrics_df.columns.tolist()table = ax.table(cellText=table_data, colLabels=table_columns, loc='center', cellLoc='center',216 unmodified lines217218219220221222223224225226227228229230231232233234235236216 unmodified linestable_data = metrics_df.valuestable_columns = metrics_df.columns.tolist()table = ax.table(cellText=table_data, colLabels=table_columns, loc='center', cellLoc='center', colLoc='center')table.auto_set_font_size(False)table.set_fontsize(10)table.scale(1.2, 1.2) # Adjust the scale for better appearance# Save the table as a PNG filepng_file = "model_report.png"fig.savefig(png_file, bbox_inches='tight', dpi=300)# Provide a download button for the PNG filewith open(png_file, "rb") as file:st.download_button(label="Download as PNG",data=file,file_name="model_report.png",mime="image/png")
app.py+17-1