Spaces:
Runtime error
Runtime error
Update app.py
Browse files222 unmodified lines223224225226227228229222 unmodified lines# Check file typeif not file.filename.lower().endswith((".pdf", ".docx", ".txt")):logger.error(f"Unsupported file format: {file.filename}")raise ValueError("Unsupported file format. Please upload a PDF, DOCX, or TXT file.")if file.filename.endswith(".pdf"):222 unmodified lines223224225226227228229222 unmodified lines# Check file typeif not file.filename.lower().endswith((".pdf", ".docx", ".txt")):logger.error(f"Unsupported files format: {file.filename}")raise ValueError("Unsupported file format. Please upload a PDF, DOCX, or TXT file.")if file.filename.endswith(".pdf"):
app.py+1-1