AIEcosystem commited on
Commit
a66e035
·
verified ·
1 Parent(s): 020ee6a

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +23 -15
src/streamlit_app.py CHANGED
@@ -14,48 +14,54 @@ from gliner import GLiNER
14
  from comet_ml import Experiment
15
 
16
 
17
-
18
  st.markdown(
19
  """
20
  <style>
21
  /* Main app background and text color */
22
  .stApp {
23
- background-color: #F3E5F5; /* A very light purple */
24
- color: #1A0A26; /* Dark purple for the text */
25
  }
 
26
  /* Sidebar background color */
27
  .css-1d36184 {
28
- background-color: #D1C4E9; /* A medium light purple */
29
- secondary-background-color: #D1C4E9;
30
  }
 
31
  /* Expander background color and header */
32
  .streamlit-expanderContent, .streamlit-expanderHeader {
33
- background-color: #F3E5F5;
34
  }
 
35
  /* Text Area background and text color */
36
  .stTextArea textarea {
37
- background-color: #B39DDB; /* A slightly darker medium purple */
38
- color: #1A0A26; /* Dark purple for text */
39
  }
 
40
  /* Button background and text color */
41
  .stButton > button {
42
- background-color: #B39DDB;
43
- color: #1A0A26;
44
  }
 
45
  /* Warning box background and text color */
46
  .stAlert.st-warning {
47
- background-color: #9575CD; /* A medium-dark purple for the warning box */
48
- color: #1A0A26;
49
  }
 
50
  /* Success box background and text color */
51
  .stAlert.st-success {
52
- background-color: #9575CD; /* A medium-dark purple for the success box */
53
- color: #1A0A26;
54
  }
55
  </style>
56
  """,
57
  unsafe_allow_html=True
58
  )
 
59
 
60
 
61
 
@@ -83,11 +89,13 @@ with st.sidebar:
83
  st.write("Use the following code to embed the MediaTagger web app on your website. Feel free to adjust the width and height values to fit your page.")
84
  code = '''
85
  <iframe
86
- src="https://aiecosystem-mediatagger.hf.space"
 
87
  frameborder="0"
88
  width="850"
89
  height="450"
90
  ></iframe>
 
91
 
92
  '''
93
  st.code(code, language="html")
 
14
  from comet_ml import Experiment
15
 
16
 
 
17
  st.markdown(
18
  """
19
  <style>
20
  /* Main app background and text color */
21
  .stApp {
22
+ background-color: #E8F5E9; /* A very light green */
23
+ color: #1B5E20; /* Dark green for the text */
24
  }
25
+
26
  /* Sidebar background color */
27
  .css-1d36184 {
28
+ background-color: #A5D6A7; /* A medium light green */
29
+ secondary-background-color: #A5D6A7;
30
  }
31
+
32
  /* Expander background color and header */
33
  .streamlit-expanderContent, .streamlit-expanderHeader {
34
+ background-color: #E8F5E9;
35
  }
36
+
37
  /* Text Area background and text color */
38
  .stTextArea textarea {
39
+ background-color: #81C784; /* A slightly darker medium green */
40
+ color: #1B5E20; /* Dark green for text */
41
  }
42
+
43
  /* Button background and text color */
44
  .stButton > button {
45
+ background-color: #81C784;
46
+ color: #1B5E20;
47
  }
48
+
49
  /* Warning box background and text color */
50
  .stAlert.st-warning {
51
+ background-color: #66BB6A; /* A medium-dark green for the warning box */
52
+ color: #1B5E20;
53
  }
54
+
55
  /* Success box background and text color */
56
  .stAlert.st-success {
57
+ background-color: #66BB6A; /* A medium-dark green for the success box */
58
+ color: #1B5E20;
59
  }
60
  </style>
61
  """,
62
  unsafe_allow_html=True
63
  )
64
+
65
 
66
 
67
 
 
89
  st.write("Use the following code to embed the MediaTagger web app on your website. Feel free to adjust the width and height values to fit your page.")
90
  code = '''
91
  <iframe
92
+ <iframe
93
+ src="https://aiecosystem-entityfinance.hf.space"
94
  frameborder="0"
95
  width="850"
96
  height="450"
97
  ></iframe>
98
+
99
 
100
  '''
101
  st.code(code, language="html")