smartinezbragado commited on
Commit
e349f36
1 Parent(s): d63878f

Update views.py

Browse files
Files changed (1) hide show
  1. views.py +6 -1
views.py CHANGED
@@ -50,7 +50,12 @@ def home():
50
  docs_df = topic_model.get_document_info(subreddits_df.Text)
51
  docs_df.to_csv('docs_with_topics_info.csv', index=False)
52
  send_file('docs_with_topics_info.csv', as_attachment=True)
53
- return render_template('success.html', topics = [topics_df.to_html(classes='data')], titles=topics_df.columns.values)
 
 
 
 
 
54
 
55
  return render_template('index.html')
56
 
 
50
  docs_df = topic_model.get_document_info(subreddits_df.Text)
51
  docs_df.to_csv('docs_with_topics_info.csv', index=False)
52
  send_file('docs_with_topics_info.csv', as_attachment=True)
53
+ return render_template('success.html',
54
+ topics = [topics_df.to_html(classes='data')],
55
+ titles=topics_df.columns.values,
56
+ docs = [docs_df.to_html(classes='data')],
57
+ docs_title=docs_df.columns.values
58
+ )
59
 
60
  return render_template('index.html')
61