Update app.py
Browse files
app.py
CHANGED
@@ -15,16 +15,15 @@ from langchain.document_loaders import PyPDFLoader
|
|
15 |
|
16 |
import os
|
17 |
|
18 |
-
st.write( os.environ['OPENAI_API_BASE'] )
|
19 |
|
20 |
os.environ["OPENAI_API_TYPE"] = "azure"
|
21 |
-
os.environ["OPENAI_API_VERSION"] = "2023-
|
22 |
-
os.environ["OPENAI_API_KEY"] = "957f7d98b47a467a98a786f7ca903112"
|
23 |
|
24 |
-
|
25 |
-
deployment_name="gpt-4",
|
26 |
-
openai_api_version="2023-03-15-preview")
|
27 |
|
|
|
|
|
|
|
28 |
|
29 |
|
30 |
|
@@ -35,7 +34,6 @@ st.write("Step 1: Summary of your selected section of CSRD... Sections in this a
|
|
35 |
st.write("Step 2: Ask your specfici questions regarding a CSRD disclosure requirments")
|
36 |
|
37 |
|
38 |
-
|
39 |
# pdf file upload
|
40 |
pdf_file = st.file_uploader("Upload file", type=["pdf"])
|
41 |
|
|
|
15 |
|
16 |
import os
|
17 |
|
|
|
18 |
|
19 |
os.environ["OPENAI_API_TYPE"] = "azure"
|
20 |
+
os.environ["OPENAI_API_VERSION"] = "2023-03-15-preview"
|
|
|
21 |
|
22 |
+
|
|
|
|
|
23 |
|
24 |
+
llm = AzureChatOpenAI(
|
25 |
+
deployment_name="esujnand", model_name="gpt-35-turbo"
|
26 |
+
)
|
27 |
|
28 |
|
29 |
|
|
|
34 |
st.write("Step 2: Ask your specfici questions regarding a CSRD disclosure requirments")
|
35 |
|
36 |
|
|
|
37 |
# pdf file upload
|
38 |
pdf_file = st.file_uploader("Upload file", type=["pdf"])
|
39 |
|