Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -124,11 +124,11 @@ def stream(query, temperature=1):
|
|
| 124 |
save_logs(query, answer)
|
| 125 |
|
| 126 |
|
| 127 |
-
prompt_financials = "
|
| 128 |
-
prompt_company_overview = "
|
| 129 |
-
prompt_products = "Give
|
| 130 |
-
prompt_market = "Give
|
| 131 |
-
prompt_value_creation = "Give me
|
| 132 |
|
| 133 |
with gr.Blocks(title=title,theme='nota-ai/theme',css="footer {visibility: hidden}") as demo:
|
| 134 |
gr.Markdown(f"## {title}")
|
|
@@ -157,17 +157,18 @@ with gr.Blocks(title=title,theme='nota-ai/theme',css="footer {visibility: hidden
|
|
| 157 |
product_input = gr.Markdown(prompt_products, visible=False)
|
| 158 |
market_input = gr.Markdown(prompt_market, visible=False)
|
| 159 |
value_creation_input = gr.Markdown(prompt_value_creation, visible=False)
|
|
|
|
| 160 |
|
| 161 |
|
| 162 |
fn_chat = stream
|
| 163 |
|
| 164 |
chat_submit_button.click(fn=fn_chat, inputs=[chat_input, temperature_slider], outputs=[chat_output])
|
| 165 |
|
| 166 |
-
company_overview_button.click(fn=fn_chat, inputs=[company_input,
|
| 167 |
-
financials_button.click(fn=fn_chat, inputs=[financials_input,
|
| 168 |
-
products_button.click(fn=fn_chat, inputs=[product_input,
|
| 169 |
-
market_button.click(fn=fn_chat, inputs=[market_input,
|
| 170 |
-
value_creation_button.click(fn=fn_chat, inputs=[value_creation_input,
|
| 171 |
|
| 172 |
login = os.environ.get("login")
|
| 173 |
pwd = os.environ.get("pwd")
|
|
|
|
| 124 |
save_logs(query, answer)
|
| 125 |
|
| 126 |
|
| 127 |
+
prompt_financials = "Give me a financial overview of the the company in a tabular structure, i want to have Revenue, gross margin, Gross margin%, EBITDA, EBITDA%, EBIT, EBIT%, Net income, Net income %, Capex, Free cash flow, Net debt, Working capital, all expressed in €M and for the last 5 years with the olders year at the most left side. Add also the CAGR as last row for this. If the information is not available, add n.a."
|
| 128 |
+
prompt_company_overview = "Give me a sharp and short overview of Software AG in the following structure: First a title with 'Company overview' in bold, and a 2 sentence summary on the company with what they do and what their business model is and how much revenue they made in 2023. Afterwards a title with 'Product and services' with 3 to 5 bullets describing the products they offer and a short description, maximum one sentence. Afterwards, a title with 'Customers' in bold and an overview in 2 sentences of how many customers they are having, what type of customers they are having and in which geographies they mainly have customers. That a title with 'Ownership structure' in bold and below 2 sentences on who owns the company since when and how this evolved in the past, if certain investors increased there ownership please add. LAstly a title 'company information' in bold, with 2 sentence on the amount of FTEs in 2024 and the location of the HQ of the firm"
|
| 129 |
+
prompt_products = "Give an overview of the different products and services that Software AG offers in the following structure: Give the business units as main bullets and add the revenue percentage of that business unit compared to the total revenue of 2023 as a line below the business unit title. For each business unit, add sub bullets with the different products and services offered per business unit, give for each product a short description what it is."
|
| 130 |
+
prompt_market = "Give me an overview of the market, give first a definition of the market Software AG is playing in, both in terms of scope and geography. In the next bullet, give the market size and the growth rate of that market over the last 5 years in terms of CAGR and a prediction of teh growth rate in CAGR for the Next 5 years. Next bullet you say 'growth drivers' and you give 3 sub bullets with the main growth drivers in this market and a short description. Than you give a title 'sub-markets' in bolt where you give in bullets the sub markets of the general market Software AG is playing, you give for each market a sub-bullet with the market growth in €M, the growth rate of that market over the last 5 years in terms of CAGR and a prediction of the growth rate in CAGR for the Next 5 years. For each submarket you give a short description of what is included in the sub market, which companies are the strong players in this market and what are main trends are driving growth or decline, give these in sub-bullets. Give the market sizes of the most recent year you have"
|
| 131 |
+
prompt_value_creation = "Give me 4 value creation and EBITDA growth drivers for the future for Software AG for topline growth and give 4 value creation levers for bottomline growth. Order the levers based on impact. Explain in 1 sentence what the lever is and why it's relevant"
|
| 132 |
|
| 133 |
with gr.Blocks(title=title,theme='nota-ai/theme',css="footer {visibility: hidden}") as demo:
|
| 134 |
gr.Markdown(f"## {title}")
|
|
|
|
| 157 |
product_input = gr.Markdown(prompt_products, visible=False)
|
| 158 |
market_input = gr.Markdown(prompt_market, visible=False)
|
| 159 |
value_creation_input = gr.Markdown(prompt_value_creation, visible=False)
|
| 160 |
+
temperature_hidden = gr.Slider(value=0, visible=False)
|
| 161 |
|
| 162 |
|
| 163 |
fn_chat = stream
|
| 164 |
|
| 165 |
chat_submit_button.click(fn=fn_chat, inputs=[chat_input, temperature_slider], outputs=[chat_output])
|
| 166 |
|
| 167 |
+
company_overview_button.click(fn=fn_chat, inputs=[company_input, temperature_hidden], outputs=[chat_output])
|
| 168 |
+
financials_button.click(fn=fn_chat, inputs=[financials_input, temperature_hidden], outputs=[chat_output])
|
| 169 |
+
products_button.click(fn=fn_chat, inputs=[product_input, temperature_hidden], outputs=[chat_output])
|
| 170 |
+
market_button.click(fn=fn_chat, inputs=[market_input, temperature_hidden], outputs=[chat_output])
|
| 171 |
+
value_creation_button.click(fn=fn_chat, inputs=[value_creation_input, temperature_hidden], outputs=[chat_output])
|
| 172 |
|
| 173 |
login = os.environ.get("login")
|
| 174 |
pwd = os.environ.get("pwd")
|