Paraphrasing
Paraphrasing copied to clipboard
Index Error
After adding the directory path I am facing this issue can you guide me on this.
IndexError Traceback (most recent call last)
C:\Users\USE~1\AppData\Local\Temp/ipykernel_12012/1020083594.py in
C:\Users\USE~1\AppData\Local\Temp/ipykernel_12012/1020083594.py in main() 145 print("Quillbot Paraphrasing Tool") 146 filepath = input("Enter the path of the formatted text file: ") --> 147 openfile(filepath) 148 149
C:\Users\USE~1\AppData\Local\Temp/ipykernel_12012/1020083594.py in openfile(filepath) 64 filepath = filepath.rstrip() 65 filesave = os.path.split(filepath)[-1] ---> 66 filesave = "Drafts/" + ([filename.strip() for filename in filesave.split('.')][-2] + " - draft") 67 68 cur_path = os.path.dirname(file)
IndexError: list index out of range