Adr740 commited on
Commit
166cbed
·
verified ·
1 Parent(s): 34bd186

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -10
app.py CHANGED
@@ -124,11 +124,11 @@ def stream(query, temperature=1):
124
  save_logs(query, answer)
125
 
126
 
127
- prompt_financials = "Can you give me a tabular overview of the following metrics with years 2018,2019,2020,2021,2022, 2023 CAGR of 2018 to 2023 in columns and revenue, gross margin, % gross margin, EBITDA, EBITDA%, EBIT, Net income, EPS, Capex, Free cash flow, Net debt, working capital in the rows. Make sure everything it in €M or % accordingly"
128
- prompt_company_overview = "Can you give me a sharp, short overview of the company? This needs to contain the a 2 line summary of what the company does, how it's business model works, what products and services is it providing, who it's clients are, what it's core geography is, where its HQ is located and how many FTEs is has"
129
- prompt_products = "Give me a short and accurate overview of the products and services Software AG provides, structure it first by mentioning the business units of Software AG, than you give for each business unit the different products and services, with it's according name, if possible, you give an indication how large in terms of revenue each of the services and products are. You also explain what the target customer group is for the different products and services are and give examples of customers if possible"
130
- prompt_market = "Give a short and sharp management consultant like description of the market Software AG is playing in. Explain what market they play in, what the sub segments are in this market, what the size is of this market and how it has been growing from 2018 to 2023 in the form of CAGRs. Explain for each sub segment of the market 2 main trends driving this growth. Give also the main competition for Software AG in the subsegments"
131
- prompt_value_creation = "Give me the 5 main EBITDA growth drivers for Software AG in the future, it can be both revenue increasing or cost reducing initiatives. Give for each driver a once sentence explanation why this is relevant"
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, temperature_slider], outputs=[chat_output])
167
- financials_button.click(fn=fn_chat, inputs=[financials_input, temperature_slider], outputs=[chat_output])
168
- products_button.click(fn=fn_chat, inputs=[product_input, temperature_slider], outputs=[chat_output])
169
- market_button.click(fn=fn_chat, inputs=[market_input, temperature_slider], outputs=[chat_output])
170
- value_creation_button.click(fn=fn_chat, inputs=[value_creation_input, temperature_slider], outputs=[chat_output])
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")