import requests import sys # Define the API endpoint # url = "http://localhost:7680/" # # test_url = "http://localhost:7860/" # response = requests.get(url) # print("Status Code:", response.status_code) # print("Response Text:", response.text) # sys.exit() post_url = "http://localhost:7680/api/aadhar_ocr" # response = requests.get(url) # print() # Define the file pathscd files = { "aadhar_file": open("/Users/javed/Downloads/test_images_folder/aadhar/22.jpg", "rb") # "pan_file": open("/Users/javed/model_one/test_images_pan/6ea33087.jpeg", "rb"), # "cheque_file": open("/Users/javed/model_one/test_images_cheque/0f81678a.jpeg", "rb"), # "gst_file": open("/Users/javed/model_one/test_images_gst/0a52fbcb_page3_image_0.jpg", "rb"), } response = requests.post(post_url, files=files) # # Print the response print("Status Code:", response.status_code) print("Response Text:", response.text)