Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,9 +5,9 @@ from langchain_community.chat_message_histories import ChatMessageHistory
|
|
5 |
from pypdf import PdfReader
|
6 |
import os
|
7 |
import gradio as gr
|
8 |
-
from langchain_openai import
|
9 |
|
10 |
-
client =
|
11 |
api_key=os.getenv("AZURE_OPENAI_API_KEY"),
|
12 |
api_version=os.getenv("OPENAI_API_VERSION"),
|
13 |
azure_endpoint=os.getenv("AZURE_OPENAI_ENDPOINT"),
|
|
|
5 |
from pypdf import PdfReader
|
6 |
import os
|
7 |
import gradio as gr
|
8 |
+
from langchain_openai import AzureChatOpenAI
|
9 |
|
10 |
+
client = AzureChatOpenAI(
|
11 |
api_key=os.getenv("AZURE_OPENAI_API_KEY"),
|
12 |
api_version=os.getenv("OPENAI_API_VERSION"),
|
13 |
azure_endpoint=os.getenv("AZURE_OPENAI_ENDPOINT"),
|