federicopascual commited on
Commit
3c29536
1 Parent(s): 487ffd8

Renaming button

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -17,8 +17,6 @@ def make_spans(text,results):
17
  facts_spans = []
18
  facts_spans = list(zip(split_in_sentences(text),results_list))
19
  return facts_spans
20
-
21
-
22
 
23
  ##Fiscal Sentiment by Sentence
24
  fin_model= pipeline("sentiment-analysis", model='FinanceInc/auditor_sentiment_finetuned', tokenizer='FinanceInc/auditor_sentiment_finetuned')
@@ -42,7 +40,7 @@ with demo:
42
  with gr.Row():
43
  text = gr.Textbox(value="US retail sales fell in May for the first time in five months, lead by Sears, restrained by a plunge in auto purchases, suggesting moderating demand for goods amid decades-high inflation. The value of overall retail purchases decreased 0.3%, after a downwardly revised 0.7% gain in April, Commerce Department figures showed Wednesday. Excluding Tesla vehicles, sales rose 0.5% last month. The department expects inflation to continue to rise.")
44
  with gr.Column():
45
- b5 = gr.Button("Financial Tone and Forward Looking Statement Analysis")
46
  with gr.Row():
47
  fin_spans = gr.HighlightedText()
48
  b5.click(fin_ext, inputs=text, outputs=fin_spans)
 
17
  facts_spans = []
18
  facts_spans = list(zip(split_in_sentences(text),results_list))
19
  return facts_spans
 
 
20
 
21
  ##Fiscal Sentiment by Sentence
22
  fin_model= pipeline("sentiment-analysis", model='FinanceInc/auditor_sentiment_finetuned', tokenizer='FinanceInc/auditor_sentiment_finetuned')
 
40
  with gr.Row():
41
  text = gr.Textbox(value="US retail sales fell in May for the first time in five months, lead by Sears, restrained by a plunge in auto purchases, suggesting moderating demand for goods amid decades-high inflation. The value of overall retail purchases decreased 0.3%, after a downwardly revised 0.7% gain in April, Commerce Department figures showed Wednesday. Excluding Tesla vehicles, sales rose 0.5% last month. The department expects inflation to continue to rise.")
42
  with gr.Column():
43
+ b5 = gr.Button("Run Analysis and Forward Looking Statement Analysis")
44
  with gr.Row():
45
  fin_spans = gr.HighlightedText()
46
  b5.click(fin_ext, inputs=text, outputs=fin_spans)