Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import os
|
|
2 |
import openai
|
3 |
import gradio
|
4 |
|
5 |
-
|
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 |
|