Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -183,11 +183,13 @@ def main():
|
|
183 |
show_download_links(subdir)
|
184 |
|
185 |
# Expander for showing URL history and download links
|
186 |
-
with st.expander("URL History and Downloaded Files
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
|
|
|
|
191 |
# Update each time to show files we have
|
192 |
for subdir in history.values():
|
193 |
show_download_links(subdir)
|
|
|
183 |
show_download_links(subdir)
|
184 |
|
185 |
# Expander for showing URL history and download links
|
186 |
+
with st.expander("URL History and Downloaded Files
|
187 |
+
try:
|
188 |
+
for url, subdir in history.items():
|
189 |
+
st.markdown(f"#### {url}")
|
190 |
+
show_download_links(subdir)
|
191 |
+
except:
|
192 |
+
print('url history is empty')
|
193 |
# Update each time to show files we have
|
194 |
for subdir in history.values():
|
195 |
show_download_links(subdir)
|