Update Text_analysis.py
Browse files- Text_analysis.py +6 -0
Text_analysis.py
CHANGED
@@ -24,6 +24,11 @@ import base64
|
|
24 |
import time
|
25 |
from app_utils import *
|
26 |
|
|
|
|
|
|
|
|
|
|
|
27 |
HTML_BANNER = """
|
28 |
<div style="background-color:green;padding:10px;border-radius:10px">
|
29 |
<h1 style="color:white;text-align:center;">Text Analysis App </h1>
|
@@ -32,6 +37,7 @@ HTML_BANNER = """
|
|
32 |
|
33 |
def text_analysis():
|
34 |
stc.html(HTML_BANNER)
|
|
|
35 |
menu=['Text-analysis','Upload_Files']
|
36 |
|
37 |
choice=st.sidebar.selectbox('Menu',menu)
|
|
|
24 |
import time
|
25 |
from app_utils import *
|
26 |
|
27 |
+
def load_image(file):
|
28 |
+
img = Image.open(file)
|
29 |
+
return img
|
30 |
+
|
31 |
+
|
32 |
HTML_BANNER = """
|
33 |
<div style="background-color:green;padding:10px;border-radius:10px">
|
34 |
<h1 style="color:white;text-align:center;">Text Analysis App </h1>
|
|
|
37 |
|
38 |
def text_analysis():
|
39 |
stc.html(HTML_BANNER)
|
40 |
+
st.image(load_image('text_analysis.png'))
|
41 |
menu=['Text-analysis','Upload_Files']
|
42 |
|
43 |
choice=st.sidebar.selectbox('Menu',menu)
|