Spaces:
Build error
Build error
Update tasks/ref_in_gpu3.py
Browse files- tasks/ref_in_gpu3.py +2 -4
tasks/ref_in_gpu3.py
CHANGED
@@ -39,11 +39,9 @@ prompts.append("change the red apple to a green one, task: (referring editing),
|
|
39 |
prompts.append("replace the dog with a cat, task: (referring editing), source: [dot], target: <cat>;")
|
40 |
prompts.append("replace the red apple with a green one, task: (referring editing), source: [red apple], target: <green apple>;")
|
41 |
|
42 |
-
|
43 |
-
# openai.api_key = "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"
|
44 |
-
openai.api_key = "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"
|
45 |
-
# os.getenv("OPENAI_API_KEY")
|
46 |
|
|
|
47 |
response = openai.Completion.create(
|
48 |
model="text-davinci-003",
|
49 |
prompt=prompt,
|
|
|
39 |
prompts.append("replace the dog with a cat, task: (referring editing), source: [dot], target: <cat>;")
|
40 |
prompts.append("replace the red apple with a green one, task: (referring editing), source: [red apple], target: <green apple>;")
|
41 |
|
42 |
+
openai.api_key = "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"
|
|
|
|
|
|
|
43 |
|
44 |
+
def get_gpt3_response(prompt):
|
45 |
response = openai.Completion.create(
|
46 |
model="text-davinci-003",
|
47 |
prompt=prompt,
|