url = "http://127.0.0.1:8503/predict/" # Prepare the file and parameters files = { "file": (file.filename, file.stream, "application/pdf") } params = { "start": start_page, "stop": end_page, "no-skipping": "true", "out": "/pages", }