Spaces:
Runtime error
Runtime error
Commit ·
e349f36
1
Parent(s): d63878f
Update views.py
Browse files
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',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
|