Skip to content

Commit

Permalink
asdfds
Browse files Browse the repository at this point in the history
  • Loading branch information
miyannishar committed Jul 3, 2024
1 parent e1b4263 commit b66db99
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
Expand Down

0 comments on commit b66db99

Please sign in to comment.