Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,9 +30,9 @@ def fls(text):
|
|
| 30 |
results = fls_model(split_in_sentences(text))
|
| 31 |
return make_spans(text,results)
|
| 32 |
|
| 33 |
-
|
| 34 |
|
| 35 |
-
with
|
| 36 |
gr.Markdown("## Financial & Audit Analyst AI")
|
| 37 |
gr.Markdown("This AI trained models can be used by auditors to provide initial analyze of earning calls, financial statements, monetary policies and review any other financial document.")
|
| 38 |
with gr.Row():
|
|
@@ -42,11 +42,14 @@ with fin-analysis:
|
|
| 42 |
with gr.Row():
|
| 43 |
b5 = gr.Button("Run Sentiment Analysis and Forward Looking Statement Analysis")
|
| 44 |
with gr.Column():
|
|
|
|
| 45 |
with gr.Row():
|
| 46 |
fin_spans = gr.HighlightedText()
|
| 47 |
with gr.Row():
|
| 48 |
fls_spans = gr.HighlightedText()
|
|
|
|
| 49 |
b5.click(fin_ext, inputs=text, outputs=fin_spans)
|
|
|
|
| 50 |
b5.click(fls, inputs=text, outputs=fls_spans)
|
| 51 |
|
| 52 |
-
|
|
|
|
| 30 |
results = fls_model(split_in_sentences(text))
|
| 31 |
return make_spans(text,results)
|
| 32 |
|
| 33 |
+
demo = gr.Blocks()
|
| 34 |
|
| 35 |
+
with demo:
|
| 36 |
gr.Markdown("## Financial & Audit Analyst AI")
|
| 37 |
gr.Markdown("This AI trained models can be used by auditors to provide initial analyze of earning calls, financial statements, monetary policies and review any other financial document.")
|
| 38 |
with gr.Row():
|
|
|
|
| 42 |
with gr.Row():
|
| 43 |
b5 = gr.Button("Run Sentiment Analysis and Forward Looking Statement Analysis")
|
| 44 |
with gr.Column():
|
| 45 |
+
gr.Markdown("Hey.0")
|
| 46 |
with gr.Row():
|
| 47 |
fin_spans = gr.HighlightedText()
|
| 48 |
with gr.Row():
|
| 49 |
fls_spans = gr.HighlightedText()
|
| 50 |
+
gr.Markdown("Hey1.")
|
| 51 |
b5.click(fin_ext, inputs=text, outputs=fin_spans)
|
| 52 |
+
gr.Markdown("Hey2.")
|
| 53 |
b5.click(fls, inputs=text, outputs=fls_spans)
|
| 54 |
|
| 55 |
+
demo.launch()
|