Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
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)
|