Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,8 +16,8 @@ print(f"api key is {api_key}")
|
|
16 |
@cl.on_chat_start
|
17 |
async def start_llm():
|
18 |
print("Initializing llm...")
|
19 |
-
llm = ChatOpenAI(model='gpt-4o-mini',
|
20 |
-
|
21 |
print("llm initialized!")
|
22 |
conversation_memory = ConversationBufferMemory(memory_key="chat_history",
|
23 |
max_len=50,
|
|
|
16 |
@cl.on_chat_start
|
17 |
async def start_llm():
|
18 |
print("Initializing llm...")
|
19 |
+
#llm = ChatOpenAI(model='gpt-4o-mini',
|
20 |
+
# temperature=0.5, api_key = api_key)
|
21 |
print("llm initialized!")
|
22 |
conversation_memory = ConversationBufferMemory(memory_key="chat_history",
|
23 |
max_len=50,
|