Error: Chain.call() got an unexpected keyword argument 'text'

17 Views Asked by At
file_path = "example.pdf"  # Path to your input file
with open(file_path, "rb") as file:
    try:
        text = read_file(file)  # Read text from file
        other_variables = {}  # Define other prompt variables
        response = sequential_chain.call(text=text, other_variables=other_variables)
        print(response)  # Process response as needed
    except Exception as e:
        print(f"Error: {e}")
0

There are 0 best solutions below