jw2yang commited on
Commit
1c55ed6
β€’
1 Parent(s): ded69d7

Rename tasks/ref_in_gpu3.py to tasks/ref_in_gpt3.py

Browse files
tasks/{ref_in_gpu3.py β†’ ref_in_gpt3.py} RENAMED
@@ -39,7 +39,7 @@ 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
- openai.api_key = "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"
43
 
44
  def get_gpt3_response(prompt):
45
  response = openai.Completion.create(
 
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 = os.environ["OPENAI_API_KEY"]
43
 
44
  def get_gpt3_response(prompt):
45
  response = openai.Completion.create(