File size: 268 Bytes
e552ac2
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
def read_txt_file(file_path):
    try:
        with open(file_path, 'r', encoding='utf-8') as file:
            system_prompt = file.read()
        return system_prompt
    except Exception as e:
        print(f"Error while reading file: {e}")
        return ""