Skip to content

Latest commit

 

History

History
103 lines (100 loc) · 5.84 KB

HOW TO USE.md

File metadata and controls

103 lines (100 loc) · 5.84 KB

How to Use Bas.AI

Clone the repository

git clone https://github.com/atharv-rem/Bas.AI.git

Word-Bas.AI Word


Add your openAI API key here

openai.api_key = "" #Add your own OpenAI key

Add file path of where the graph has to be stored here

plt.savefig(f'', dpi=600, bbox_inches='tight',
#add file path in this format (keep the variable) C:\\Users\\OneDrive\\Desktop\\code\\{TofGraph1}.png

Add the same file path here

doc.add_picture(f'', width=Cm(16.51),
#add file path in this format (keep the variable) C:\\Users\\OneDrive\\Desktop\\code\\{TofGraph1}.png

Add file path of where the graph has to be stored here

plt.savefig(f'', dpi=600, bbox_inches='tight',
#add file path in this format (keep the variable) C:\\Users\\OneDrive\\Desktop\\code\\{TofGraph2}.png

Add the same file path of where the graph has to be stored here

doc.add_picture(f'', width=Cm(16.51),
#add file path in this format (keep the variable) C:\\Users\\OneDrive\\Desktop\\code\\{TofGraph1}.png

Add file path to save the word file in your required directory here

file_name = f''  # file path in this format (keep this variable)C:\\Users\\OneDrive\\Desktop\\code\\{H1} - Annual Performance.docx

Excel-Bas.AI Excel


Add file path to save the excel file in your required directory here

file_name = f'' #file path in this format (keep the variable) C:\\Users\\OneDrive\\Desktop\\code\\{Name} - Annual Performance.xlsx

PPT-Bas.AI PowerPoint


Add file path to save the word file in your required directory here

prs.save(f"") # file path in this format(keep the variable) C:\\Users\\OneDrive\\Desktop\\code\\{file_name}
os.startfile(f"")  # file path in this format(keep the variable) C:\\Users\\OneDrive\\Desktop\\code\\{file_name}

Email-Bas.AI Gmail


Fill these out here

# Setup port number and server name
smtp_port = 587  # Standard secure SMTP port
smtp_server = "smtp.gmail.com"  # Google SMTP Server
# OpenAI key to access OpenAI account
openai.api_key = "" #your API key
# Password to access Gmail account
pswd = '' #Password to your gmail account
# Email id from which the mails have to be sent
email_from = "" #Your Email ID

You can get the password to your gmail account by following the steps:-

  • Go to Manage your Google account
  • under security click 2step verification
  • Scroll down and go to App passwords
  • create new and give the name as python
  • copy the password and paste it in the pswd variable

You can get the API key of your API account by following the steps:-

  • Login to your account
  • Go to API
  • Go to the menu on the top right
  • click API keys
  • create new key and paste it into openai_key variable

Add directory path here

for i in os.listdir(r''):  # add your own directory from which the files are being displayed

Add the file path related to your directory here

filename = f'' # file path in this format (Keeep the variable) C:\\Users\\OneDrive\\Desktop\\code\\{v}

GUI-Bas.AI UI Design


Add the file path to your word python code here

subprocess.Popen(["python", ""]) #Add your Word-Bas.AI path

Add the file path to your excel python code here

subprocess.Popen(["python", ""]) #Add your Excel-Bas.AI path

Add the file path to your ppt python code here

subprocess.Popen(["python",""]) #Add your PPT-Bas.AI path

Add the file path to your mail python code here

subprocess.Popen(["python", ""]) #Add your Send_Mail-Bas.AI path