Spaces:
Sleeping
Sleeping
type error correction
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ def download_button(object_to_download, download_filename, button_text, pickle_i
|
|
64 |
encoding='utf-8',
|
65 |
index=False,
|
66 |
header=True,
|
67 |
-
na_rep=''
|
68 |
)
|
69 |
towrite.seek(0)
|
70 |
|
@@ -114,7 +114,14 @@ def download_button(object_to_download, download_filename, button_text, pickle_i
|
|
114 |
|
115 |
return dl_link
|
116 |
|
117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
|
119 |
|
120 |
cobie_file_button = st.text_input("Dropbox link to COBie file", key="cobie_file_button")
|
@@ -142,7 +149,9 @@ if tabs:
|
|
142 |
|
143 |
df = cobie_file.parse(selected_sheet)
|
144 |
|
145 |
-
|
|
|
|
|
146 |
|
147 |
# st.markdown(download_button(df, 'COBieIDs.xlsx', 'Download COBieIDs.xlsx'), unsafe_allow_html=True)
|
148 |
|
|
|
64 |
encoding='utf-8',
|
65 |
index=False,
|
66 |
header=True,
|
67 |
+
na_rep='n/a',
|
68 |
)
|
69 |
towrite.seek(0)
|
70 |
|
|
|
114 |
|
115 |
return dl_link
|
116 |
|
117 |
+
st.markdown(
|
118 |
+
'''
|
119 |
+
# COnvert Revit IDs to GUIDs
|
120 |
+
Provide any spreadsheet (using a dropbox link) that has a column of revit IDs.
|
121 |
+
Select the sheet witin the spreadsheet and the column with the IDs.
|
122 |
+
Only the selected sheet will be returned, you can cut and paste the sheet back into the origial spreadsheet.
|
123 |
+
'''
|
124 |
+
)
|
125 |
|
126 |
|
127 |
cobie_file_button = st.text_input("Dropbox link to COBie file", key="cobie_file_button")
|
|
|
149 |
|
150 |
df = cobie_file.parse(selected_sheet)
|
151 |
|
152 |
+
if type(df) == pd.DataFrame:
|
153 |
+
|
154 |
+
st.write(df)
|
155 |
|
156 |
# st.markdown(download_button(df, 'COBieIDs.xlsx', 'Download COBieIDs.xlsx'), unsafe_allow_html=True)
|
157 |
|