AceVen57 commited on
Commit
be0cf09
·
verified ·
1 Parent(s): 485ea2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -148,6 +148,15 @@ def predict(user_input,company):
148
 
149
  return prediction
150
 
 
 
 
 
 
 
 
 
 
151
 
152
  def get_predict(question, company):
153
  # Implement your prediction logic here
@@ -193,6 +202,6 @@ with gr.Blocks(theme="gradio/dark@>=0.0.1,<0.1.0") as demo:
193
  inputs=[question, company],
194
  outputs=output
195
  )
196
-
197
  demo.queue()
198
  demo.launch()
 
148
 
149
  return prediction
150
 
151
+ examples = [
152
+ ["What are the company's policies and frameworks regarding AI ethics, governance, and responsible AI use as detailed in their 10-K reports?", "AWS"],
153
+ ["What are the primary business segments of the company, and how does each segment contribute to the overall revenue and profitability?", "AWS"],
154
+ ["What are the key risk factors identified in the 10-K report that could potentially impact the company's business operations and financial performance?", "AWS"],
155
+ ["Has the company made any significant acquisitions in the AI space, and how are these acquisitions being integrated into the company's strategy?", "Microsoft"],
156
+ ["How much capital has been allocated towards AI research and development?","Google"],
157
+ ["What initiatives has the company implemented to address ethical concerns surrounding AI, such as fairness, accountability, and privacy?","IBM"],
158
+ ["How does the company plan to differentiate itself in the AI space relative to competitors?","Meta"]
159
+ ]
160
 
161
  def get_predict(question, company):
162
  # Implement your prediction logic here
 
202
  inputs=[question, company],
203
  outputs=output
204
  )
205
+ examples_component = gr.Examples(examples=examples, inputs=[question, company])
206
  demo.queue()
207
  demo.launch()