Spaces:
Build error
Build error
Richard Hsu
commited on
Commit
·
24e3d97
1
Parent(s):
bc0a07e
push
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def extract_text_summary_and_guidance_from_pdf(pdf_file):
|
|
21 |
text += document.page_content
|
22 |
|
23 |
# Initialize the OpenAI model with the API key from environment variables
|
24 |
-
llm = ChatOpenAI(model_name="gpt-
|
25 |
|
26 |
# Load the summarization chain
|
27 |
summarize_chain = load_summarize_chain(llm)
|
@@ -46,6 +46,7 @@ def extract_text_summary_and_guidance_from_pdf(pdf_file):
|
|
46 |
Present the extracted information in bullet points.
|
47 |
If possible, emphasize on forward-looking/expected financial metrics first, then forward-looking/expected business tailwind/headwinds.
|
48 |
If possible, incorporate specific numbers along with each guidance point.
|
|
|
49 |
|
50 |
Output Format:
|
51 |
Provide the extracted key guidance in bullet points.
|
|
|
21 |
text += document.page_content
|
22 |
|
23 |
# Initialize the OpenAI model with the API key from environment variables
|
24 |
+
llm = ChatOpenAI(model_name="gpt-4-turbo", temperature=0)
|
25 |
|
26 |
# Load the summarization chain
|
27 |
summarize_chain = load_summarize_chain(llm)
|
|
|
46 |
Present the extracted information in bullet points.
|
47 |
If possible, emphasize on forward-looking/expected financial metrics first, then forward-looking/expected business tailwind/headwinds.
|
48 |
If possible, incorporate specific numbers along with each guidance point.
|
49 |
+
Ensure every statement must be about expectation of future, or forward-looking statement.
|
50 |
|
51 |
Output Format:
|
52 |
Provide the extracted key guidance in bullet points.
|