Spaces:
Paused
Paused
Update tasks/ref_in_gpt3.py
Browse files- tasks/ref_in_gpt3.py +4 -4
tasks/ref_in_gpt3.py
CHANGED
|
@@ -40,10 +40,10 @@ prompts.append("instruction: change the color of bird's feathers from white to b
|
|
| 40 |
prompts.append("instruction: replace the dog with a cat, task: (referring editing), source: [dot], target: <cat>.")
|
| 41 |
prompts.append("instruction: replace the red apple with a green one, task: (referring editing), source: [red apple], target: <green apple>.")
|
| 42 |
|
| 43 |
-
openai.api_type = "azure"
|
| 44 |
-
openai.api_base = "https://xdecoder.openai.azure.com/"
|
| 45 |
-
openai.api_version = "2022-12-01"
|
| 46 |
-
|
| 47 |
openai.api_key = os.environ["OPENAI_API_KEY"]
|
| 48 |
|
| 49 |
def get_gpt3_response(prompt):
|
|
|
|
| 40 |
prompts.append("instruction: replace the dog with a cat, task: (referring editing), source: [dot], target: <cat>.")
|
| 41 |
prompts.append("instruction: replace the red apple with a green one, task: (referring editing), source: [red apple], target: <green apple>.")
|
| 42 |
|
| 43 |
+
#openai.api_type = "azure"
|
| 44 |
+
#openai.api_base = "https://xdecoder.openai.azure.com/"
|
| 45 |
+
#openai.api_version = "2022-12-01"
|
| 46 |
+
openai.organization = os.environ["OPENAI_ORG"]
|
| 47 |
openai.api_key = os.environ["OPENAI_API_KEY"]
|
| 48 |
|
| 49 |
def get_gpt3_response(prompt):
|