AIEcosystem commited on
Commit
a2672ee
·
verified ·
1 Parent(s): 29c55cc

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +45 -0
src/streamlit_app.py CHANGED
@@ -24,6 +24,51 @@ from sklearn.decomposition import LatentDirichletAllocation
24
  # ------------------------------
25
  from gliner import GLiNER
26
  from streamlit_extras.stylable_container import stylable_container
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  # Using a try/except for comet_ml import
28
  try:
29
  from comet_ml import Experiment
 
24
  # ------------------------------
25
  from gliner import GLiNER
26
  from streamlit_extras.stylable_container import stylable_container
27
+
28
+
29
+ # --- Conditional Mobile Warning ---
30
+ st.markdown(
31
+ """
32
+ <style>
33
+ /* CSS Media Query: Only show the content inside this selector when the screen width is 600px or less (typical mobile size) */
34
+ @media (max-width: 600px) {
35
+ #mobile-warning-container {
36
+ display: block; /* Show the warning container */
37
+ background-color: #ffcccc; /* Light red/pink background */
38
+ color: #cc0000; /* Dark red text */
39
+ padding: 10px;
40
+ border-radius: 5px;
41
+ text-align: center;
42
+ margin-bottom: 20px;
43
+ font-weight: bold;
44
+ border: 1px solid #cc0000;
45
+ }
46
+ }
47
+
48
+ /* Hide the content by default (for larger screens) */
49
+ @media (min-width: 601px) {
50
+ #mobile-warning-container {
51
+ display: none; /* Hide the warning container on desktop */
52
+ }
53
+ }
54
+ </style>
55
+
56
+ <div id="mobile-warning-container">
57
+ ⚠️ **Tip for Mobile Users:** For the best viewing experience of the charts and tables, please switch your browser to **"Desktop Site"** view.
58
+ </div>
59
+ """,
60
+ unsafe_allow_html=True
61
+ )
62
+ # ----------------------------------
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
  # Using a try/except for comet_ml import
73
  try:
74
  from comet_ml import Experiment