Docfile commited on
Commit
133cfc6
·
verified ·
1 Parent(s): 0206d8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -461,7 +461,7 @@ def index():
461
  print(f"Attempting PDF conversion for {docx_filepath}...")
462
  try:
463
  # Check API key again before conversion attempt
464
- if not convertapi.api_credentials or convertapi.api_credentials = 'secret_8wCI6pgOP9AxLVJG':
465
  flash("La clé API pour ConvertAPI n'est pas configurée correctement. Impossible de générer le PDF.", "error")
466
  # Optionally send the docx as fallback?
467
  # return send_file(docx_filepath, as_attachment=True, download_name=docx_filename)
 
461
  print(f"Attempting PDF conversion for {docx_filepath}...")
462
  try:
463
  # Check API key again before conversion attempt
464
+ if not convertapi.api_credentials:
465
  flash("La clé API pour ConvertAPI n'est pas configurée correctement. Impossible de générer le PDF.", "error")
466
  # Optionally send the docx as fallback?
467
  # return send_file(docx_filepath, as_attachment=True, download_name=docx_filename)