robertselvam commited on
Commit
743da29
·
1 Parent(s): 4dcf2f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +53 -52
app.py CHANGED
@@ -322,58 +322,59 @@ class KeyValueExtractor:
322
  gr.HTML("""<center class="darkblue" style='background-color:rgb(0,1,36); text-align:center;padding:25px;'><center><h1 class ="center">
323
  <img src="file=logo.png" height="110px" width="280px"></h1></center>
324
  <br><h1 style="color:#fff">summarizer</h1></center>""")
325
- with gr.Row(elem_id="col-container"):
326
- with gr.Column(scale=1.0, min_width=150, ):
327
- gr.Dropdown(label="List Of Companies",info="""Apple Inc. - AAPL
328
- Microsoft Corporation - MSFT
329
- Amazon.com Inc. - AMZN
330
- Alphabet Inc. (Google) - GOOGL (Class A shares), GOOG (Class C shares)
331
- Facebook Inc. - FB
332
- Tesla Inc. - TSLA
333
- Netflix Inc. - NFLX
334
- NVIDIA Corporation - NVDA
335
- Intel Corporation - INTC
336
- The Coca-Cola Company - KO
337
- Pfizer Inc. - PFE
338
- Johnson & Johnson - JNJ
339
- Procter & Gamble Co. - PG
340
- Visa Inc. - V
341
- Mastercard Incorporated - MA
342
- Walmart Inc. - WMT
343
- Adobe Inc. - ADBE
344
- Salesforce.com Inc. - CRM
345
- IBM (International Business Machines Corporation) - IBM
346
- McDonald's Corporation - MCD
347
- Boeing Co. - BA
348
- The Walt Disney Company - DIS
349
- JPMorgan Chase & Co. - JPM
350
- Goldman Sachs Group Inc. - GS
351
- Verizon Communications Inc. - VZ
352
- AT&T Inc. - T
353
- General Electric Co. - GE
354
- Exxon Mobil Corporation - XOM
355
- Chevron Corporation - CVX
356
- Coca-Cola Enterprises Inc. - CCEP
357
- Nike Inc. - NKE
358
- PepsiCo Inc. - PEP
359
- Oracle Corporation - ORCL
360
- Cisco Systems Inc. - CSCO
361
- Intel Corporation - INTC
362
- Netflix Inc. - NFLX
363
- Walmart Inc. - WMT
364
- PayPal Holdings Inc. - PYPL
365
- Square Inc. - SQ
366
- Adobe Inc. - ADBE
367
- Zoom Video Communications Inc. - ZM
368
- Moderna Inc. - MRNA
369
- Twitter Inc. - TWTR
370
- Airbnb Inc. - ABNB
371
- Uber Technologies Inc. - UBER
372
- Lyft Inc. - LYFT
373
- Snap Inc. - SNAP
374
- Spotify Technology S.A. - SPOT
375
- Pinterest Inc. - PINS
376
- Beyond Meat Inc. - BYND""")
 
377
  with gr.Row(elem_id="col-container"):
378
  with gr.Column(scale=1.0, min_width=150, ):
379
  input_news = gr.Textbox(label="Company Name")
 
322
  gr.HTML("""<center class="darkblue" style='background-color:rgb(0,1,36); text-align:center;padding:25px;'><center><h1 class ="center">
323
  <img src="file=logo.png" height="110px" width="280px"></h1></center>
324
  <br><h1 style="color:#fff">summarizer</h1></center>""")
325
+ with gr.Accordion("Upload Files", open = False):
326
+ with gr.Row(elem_id="col-container"):
327
+ with gr.Column(scale=1.0, min_width=150 ):
328
+ list_of_companies = gr.HTML(label="List_of_Companies",value="""Apple Inc. - AAPL
329
+ Microsoft Corporation - MSFT
330
+ Amazon.com Inc. - AMZN
331
+ Alphabet Inc. (Google) - GOOGL (Class A shares), GOOG (Class C shares)
332
+ Facebook Inc. - FB
333
+ Tesla Inc. - TSLA
334
+ Netflix Inc. - NFLX
335
+ NVIDIA Corporation - NVDA
336
+ Intel Corporation - INTC
337
+ The Coca-Cola Company - KO
338
+ Pfizer Inc. - PFE
339
+ Johnson & Johnson - JNJ
340
+ Procter & Gamble Co. - PG
341
+ Visa Inc. - V
342
+ Mastercard Incorporated - MA
343
+ Walmart Inc. - WMT
344
+ Adobe Inc. - ADBE
345
+ Salesforce.com Inc. - CRM
346
+ IBM (International Business Machines Corporation) - IBM
347
+ McDonald's Corporation - MCD
348
+ Boeing Co. - BA
349
+ The Walt Disney Company - DIS
350
+ JPMorgan Chase & Co. - JPM
351
+ Goldman Sachs Group Inc. - GS
352
+ Verizon Communications Inc. - VZ
353
+ AT&T Inc. - T
354
+ General Electric Co. - GE
355
+ Exxon Mobil Corporation - XOM
356
+ Chevron Corporation - CVX
357
+ Coca-Cola Enterprises Inc. - CCEP
358
+ Nike Inc. - NKE
359
+ PepsiCo Inc. - PEP
360
+ Oracle Corporation - ORCL
361
+ Cisco Systems Inc. - CSCO
362
+ Intel Corporation - INTC
363
+ Netflix Inc. - NFLX
364
+ Walmart Inc. - WMT
365
+ PayPal Holdings Inc. - PYPL
366
+ Square Inc. - SQ
367
+ Adobe Inc. - ADBE
368
+ Zoom Video Communications Inc. - ZM
369
+ Moderna Inc. - MRNA
370
+ Twitter Inc. - TWTR
371
+ Airbnb Inc. - ABNB
372
+ Uber Technologies Inc. - UBER
373
+ Lyft Inc. - LYFT
374
+ Snap Inc. - SNAP
375
+ Spotify Technology S.A. - SPOT
376
+ Pinterest Inc. - PINS
377
+ Beyond Meat Inc. - BYND""")
378
  with gr.Row(elem_id="col-container"):
379
  with gr.Column(scale=1.0, min_width=150, ):
380
  input_news = gr.Textbox(label="Company Name")