CultriX commited on
Commit
2c85e25
·
1 Parent(s): 9f97f87

Debug: Add print statements for download link path

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -193,6 +193,7 @@ def process_input_updated(url_or_id, source_type, depth, output_format_selection
193
  return error_message, None, None
194
 
195
  if error_message:
 
196
  return error_message, None, None # Error text, no preview, no file
197
 
198
  # Save raw_content (which is markdown) to a file of the chosen output_format
@@ -226,9 +227,11 @@ def process_input_updated(url_or_id, source_type, depth, output_format_selection
226
  preview_content = "[CSV file path not available for preview]"
227
 
228
 
 
229
  progress(1, desc="Processing complete.")
230
  return f"Successfully processed: {url_or_id}", preview_content, output_file_path
231
  except Exception as e:
 
232
  return f"Error during file conversion/saving: {str(e)}", raw_content, None
233
 
234
 
 
193
  return error_message, None, None
194
 
195
  if error_message:
196
+ print(f"Error before file generation: {error_message}") # DEBUGGING
197
  return error_message, None, None # Error text, no preview, no file
198
 
199
  # Save raw_content (which is markdown) to a file of the chosen output_format
 
227
  preview_content = "[CSV file path not available for preview]"
228
 
229
 
230
+ print(f"Generated output file path for download: {output_file_path}") # DEBUGGING
231
  progress(1, desc="Processing complete.")
232
  return f"Successfully processed: {url_or_id}", preview_content, output_file_path
233
  except Exception as e:
234
+ print(f"Exception during file conversion/saving: {str(e)}") # DEBUGGING
235
  return f"Error during file conversion/saving: {str(e)}", raw_content, None
236
 
237