From b66db9917acf35f15bc4d558130ae2a4804d979c Mon Sep 17 00:00:00 2001 From: miyannishar Date: Tue, 2 Jul 2024 22:23:49 -0400 Subject: [PATCH] asdfds --- main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 23468cc..8a87db4 100644 --- a/main.py +++ b/main.py @@ -14,7 +14,9 @@ -os.environ['OPENAI_API_KEY']=os.getenv("OPENAI_API_KEY") +# os.environ['OPENAI_API_KEY']=os.getenv("OPENAI_API_KEY") + +openai_api_key = st.secrets["openai"]["api_key"] # Aba ta hunai parca aba ni vayena vani kaam xain ahaoiio ata @@ -33,7 +35,7 @@ main_placeholder = st.empty() -llm = OpenAI(temperature=0.9, max_tokens=500) +llm = OpenAI(temperature=0.9, max_tokens=500,openai_api_key=openai_api_key) if process_url_clicked: loaders = UnstructuredURLLoader(urls=urls)