Cachoups commited on
Commit
019952c
·
verified ·
1 Parent(s): 72202c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -0
app.py CHANGED
@@ -302,6 +302,28 @@ stored_df1 = []
302
  stored_df2 = []
303
 
304
  with gr.Blocks() as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
305
  with gr.Tab("Financial Report Text Analysis"):
306
  gr.Markdown("## Financial Report Paragraph Selection and Analysis on adverse macro-economy scenario")
307
 
 
302
  stored_df2 = []
303
 
304
  with gr.Blocks() as demo:
305
+ with gr.Tab("Contents"):
306
+ gr.Markdown("""
307
+ ## Macro-economy Adverse Scenario Comparison from EBA Reports
308
+
309
+ This application allows the user to compare two reports from text contents or from tables. It's divided into two tabs.
310
+
311
+ **First Tab: Text Comparisons**
312
+
313
+ - Select two PDFs. Each PDF's text content will be extracted into paragraphs.
314
+ - Select a paragraph from one PDF, and find the most similar paragraph from the other PDF using a specific method.
315
+ - For a selected paragraph, compute summarization using the **FinPEGASUS model**.
316
+ - For a selected paragraph, compute sentiment analysis of the paragraph, and for each sentence, classify into three classes (Positive, Negative, Neutral) using two different fine-tuned **FinBERT models**:
317
+ - [ProsusAI/finbert](https://huggingface.co/ProsusAI/finbert)
318
+ - [yiyanghkust/finbert-tone](https://huggingface.co/yiyanghkust/finbert-tone)
319
+
320
+ **Second Tab: Table Comparisons**
321
+
322
+ - Select two Excel files and a sheet name.
323
+ - For the two selected tables, compute the difference of the cumulative adverse growth rate over their respective three years for the selected sheet name (topic).
324
+ - For the selected topic (sheet name), find related sentences in the associated PDF text that mention the topic, and classify them by sentiment.
325
+ - For a selected country and topic, describe the adverse growth rate trend over three years using the [**google/flan-t5-base** model](https://huggingface.co/google/flan-t5-base).
326
+ """)
327
  with gr.Tab("Financial Report Text Analysis"):
328
  gr.Markdown("## Financial Report Paragraph Selection and Analysis on adverse macro-economy scenario")
329