Model depolyment issue of gpt3. Worked fine locally

HI, I tried to deploy my gpt3 app on streamlit and facing data leakage error. APp worked fine locally. Don’t know whats the issue. I even tried to update my API keys and used new API keys from Openai but still facing this issue. Please help me fix it. I am attaching a screenshot of the error.

Hi @Saad_Khattak,

Thanks so much for posting! Please check out our new guidelines for posting in the forum and update your post to include a properly formatted code snippet.

2 Likes

Try to use the openai lib, will work it.

Hi, @koninhoo I solved the issue by setting my GitHub repo (in which I had my app.py file) to private. Open AI is sensitive about its API keys. They won’t allow the app to be published if the API keys are placed in a repo set to Public. So always set the repo to private.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.