Sobhanrad commited on
Commit
1fe42a6
1 Parent(s): fa30d32
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,12 +1,12 @@
1
  from langchain_openai import OpenAI
2
- from dotenv import load_dotenv
3
  import streamlit as st
4
  import os
5
 
6
- load_dotenv()
7
 
8
  def get_openai_response(question):
9
- llm = OpenAI(temperature=0.6, openai_api_key=os.getenv('OPENAI_API_KEY'))
10
  response = llm.invoke(question)
11
  return response
12
 
 
1
  from langchain_openai import OpenAI
2
+ #from dotenv import load_dotenv
3
  import streamlit as st
4
  import os
5
 
6
+ #load_dotenv()
7
 
8
  def get_openai_response(question):
9
+ llm = OpenAI(temperature=0.6)
10
  response = llm.invoke(question)
11
  return response
12