Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ 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 |
|
9 |
def CustomChatGPT(user_input):
|
10 |
messages.append({"role": "user", "content": user_input})
|
|
|
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 |
|
9 |
def CustomChatGPT(user_input):
|
10 |
messages.append({"role": "user", "content": user_input})
|