12345678910111213 |
- def homepage():
- comic_data = comic_data_df.to_dict(orient='records')
- comic_data = json.dumps(comic_data, indent=2)
- return_comic_data = {'comic_data': comic_data}
- feature_names = json.dumps(feature_counts)
- return_feature_names = {'feature_names': feature_names}
- return render_template('index.html',
- return_comic_data=return_comic_data,
- num_comics=comic_data_df.shape[0],
- return_feature_names=return_feature_names,
- num_features=len(feature_counts))
|