Spaces:
Runtime error
Runtime error
Update my_agent.py
Browse files7 unmodified lines8910111213141511121314151617187 unmodified linesimport os
# Load environment variables from .env filewith open('.env') as f: for line in f: if line.strip() and not line.startswith('#'): key, value = line.strip().split('=', 1) os.environ[key] = value# with open('.env') as f:# for line in f:# if line.strip() and not line.startswith('#'):# key, value = line.strip().split('=', 1)# os.environ[key] = value
@tooldef get_file_from_documents(file_name: str) -> BinaryIO:my_agent.py+5-5