j-min / DSG

Davidsonian Scene Graph (DSG) for Text-to-Image Evaluation (ICLR 2024)
https://google.github.io/dsg
74 stars 5 forks source link

How to make '_OAI_KEY.txt' file #7

Open gaotaogaotao opened 1 month ago

gaotaogaotao commented 1 month ago

hi, I show 'FileNotFoundError: [Errno 2] No such file or directory: './_OAI_KEY.txt'' when trying to use 'ti2_eval_example.ipynb '. How do I make my own '_OAI_KEY.txt'? could you help me,pleases.

j-min commented 1 month ago

Hi, thanks for your interest. You can simply save your openai api key in ./_OAI_KEY.txt. Alternatively, you can assign the key openai.api_key = key as implemented here - https://github.com/j-min/DSG/blob/main/dsg/openai_utils.py#L4-L9

gaotaogaotao commented 1 month ago

Hi, thanks for your interest. You can simply save your openai api key in ./_OAI_KEY.txt. Alternatively, you can assign the key openai.api_key = key as implemented here - https://github.com/j-min/DSG/blob/main/dsg/openai_utils.py#L4-L9 thank you