21501A0580 commited on
Commit
44d5108
·
verified ·
1 Parent(s): 9300b43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +32 -0
app.py CHANGED
@@ -23,6 +23,38 @@ class_names = {
23
  14: 'RottenMango', 15: 'RottenTomato', 16: 'freshBread', 17: 'rottenBread'
24
  }
25
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  # Helper function: Extract expiry dates
27
  def extract_expiry_dates(text):
28
  patterns = [
 
23
  14: 'RottenMango', 15: 'RottenTomato', 16: 'freshBread', 17: 'rottenBread'
24
  }
25
 
26
+ # Custom CSS for styling
27
+ st.markdown("""
28
+ <style>
29
+ .main {
30
+ background-color: #f0f2f6;
31
+ padding: 20px;
32
+ border-radius: 10px;
33
+ }
34
+ .stButton>button {
35
+ background-color: #4CAF50;
36
+ color: white;
37
+ border-radius: 8px;
38
+ padding: 10px 24px;
39
+ font-size: 16px;
40
+ margin: 10px 0;
41
+ }
42
+ .stButton>button:hover {
43
+ background-color: #45a049;
44
+ }
45
+ .stSidebar {
46
+ background-color: #2c3e50;
47
+ color: white;
48
+ }
49
+ .stSidebar .stSelectbox {
50
+ color: black;
51
+ }
52
+ h1, h2, h3, h4, h5, h6 {
53
+ color: #2c3e50;
54
+ }
55
+ </style>
56
+ """, unsafe_allow_html=True)
57
+
58
  # Helper function: Extract expiry dates
59
  def extract_expiry_dates(text):
60
  patterns = [