abhivsh commited on
Commit
b52fa15
·
verified ·
1 Parent(s): 62f380a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -50,8 +50,8 @@ history = "Hello !"
50
  def chat_query(question, history):
51
 
52
  query = f"As an experienced Electrical Engineer, answer pointwise to the Question : {question} and consider your previous reply as : {history[:-1]}, if any."
53
- llm = ChatOpenAI(model=llm_name, temperature=0.1, api_key = OPENAI_API_KEY)
54
- #llm = GoogleGenerativeAI(model="gemini-1.0-pro", google_api_key=GEMINI_API_KEY)
55
 
56
  # Conversation Retrival Chain with Memory
57
  memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)
 
50
  def chat_query(question, history):
51
 
52
  query = f"As an experienced Electrical Engineer, answer pointwise to the Question : {question} and consider your previous reply as : {history[:-1]}, if any."
53
+ #llm = ChatOpenAI(model=llm_name, temperature=0.1, api_key = OPENAI_API_KEY)
54
+ llm = GoogleGenerativeAI(model="gemini-1.0-pro", google_api_key=GEMINI_API_KEY)
55
 
56
  # Conversation Retrival Chain with Memory
57
  memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)