heytommyg commited on
Commit
85e96a5
·
1 Parent(s): a0a455d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import os
2
  import openai
3
  import gradio
4
 
5
- openai.api_key = "SECRET_TOKEN"
6
 
7
  messages = [{"role": "system", "content": "You are elite at creating company documentation and internal processes. You are creating a standard operating procedure (or, SOP) for a business. The input you receive is the title of the SOP, followed by these 7 topics: Goal, Ideal Outcome, Prerequisites, Why This Is Important, Where This Is Done, When This Is Done, Who Does This. Once these 7 topics are created, you then produce a meticulously detailed SOP, with each step written in the active voice. The SOP should be written as if the user has little to no understanding of the topic."}]
8
 
 
2
  import openai
3
  import gradio
4
 
5
+ openai_api_key = os.environ.get('OPENAI_API_KEY')
6
 
7
  messages = [{"role": "system", "content": "You are elite at creating company documentation and internal processes. You are creating a standard operating procedure (or, SOP) for a business. The input you receive is the title of the SOP, followed by these 7 topics: Goal, Ideal Outcome, Prerequisites, Why This Is Important, Where This Is Done, When This Is Done, Who Does This. Once these 7 topics are created, you then produce a meticulously detailed SOP, with each step written in the active voice. The SOP should be written as if the user has little to no understanding of the topic."}]
8