Spaces:
Build error
Build error
delayed survey header
Browse files- app.py +6 -6
- src/Surveyor.py +1 -0
app.py
CHANGED
|
@@ -83,9 +83,9 @@ if __name__ == '__main__':
|
|
| 83 |
'(draft paper format) and other interesting artifacts from a single research query or a curated set of papers(arxiv ids).')
|
| 84 |
st.write('##### Data Provider: arXiv Open Archive Initiative OAI')
|
| 85 |
st.sidebar.image(Image.open('logo.png'), use_column_width = 'always')
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
download_placeholder =
|
| 90 |
-
surveyor_obj = get_surveyor_instance(_print_fn=std_col.write, _survey_print_fn=
|
| 91 |
-
survey_space(surveyor_obj,
|
|
|
|
| 83 |
'(draft paper format) and other interesting artifacts from a single research query or a curated set of papers(arxiv ids).')
|
| 84 |
st.write('##### Data Provider: arXiv Open Archive Initiative OAI')
|
| 85 |
st.sidebar.image(Image.open('logo.png'), use_column_width = 'always')
|
| 86 |
+
survey_row = st.container()
|
| 87 |
+
std_row = st.container()
|
| 88 |
+
std_row.write('#### execution log:')
|
| 89 |
+
std_col, download_placeholder = std_row.columns(2)
|
| 90 |
+
surveyor_obj = get_surveyor_instance(_print_fn=std_col.write, _survey_print_fn=survey_row.write)
|
| 91 |
+
survey_space(surveyor_obj, download_placeholder)
|
src/Surveyor.py
CHANGED
|
@@ -347,6 +347,7 @@ class Surveyor:
|
|
| 347 |
file = open(filename, 'w+')
|
| 348 |
if query is None:
|
| 349 |
query = 'Internal(existing) research'
|
|
|
|
| 350 |
file.write("----------------------------------------------------------------------")
|
| 351 |
file.write("Title: A survey on " + query)
|
| 352 |
self.survey_print_fn("")
|
|
|
|
| 347 |
file = open(filename, 'w+')
|
| 348 |
if query is None:
|
| 349 |
query = 'Internal(existing) research'
|
| 350 |
+
self.survey_print_fn("#### Generated_survey:")
|
| 351 |
file.write("----------------------------------------------------------------------")
|
| 352 |
file.write("Title: A survey on " + query)
|
| 353 |
self.survey_print_fn("")
|