SerialGuy commited on
Commit
a6c88aa
·
1 Parent(s): 6f55d8c

fixed a visual bug

Browse files
Files changed (1) hide show
  1. app.py +17 -7
app.py CHANGED
@@ -72,14 +72,24 @@ st.markdown("""
72
  font-family: 'Playfair Display', serif;
73
  font-size: 4rem;
74
  font-weight: 700;
75
- background: linear-gradient(135deg, #d4af37 0%, #ffd700 50%, #b8860b 100%);
76
- -webkit-background-clip: text;
77
- -webkit-text-fill-color: transparent;
78
- background-clip: text;
79
  margin-bottom: 1.5rem;
80
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
81
  position: relative;
82
  z-index: 1;
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  }
84
 
85
  .subtitle {
@@ -92,7 +102,6 @@ st.markdown("""
92
  font-weight: 400;
93
  position: relative;
94
  z-index: 1;
95
-
96
  }
97
 
98
  /* Feature Cards Grid */
@@ -519,11 +528,12 @@ st.markdown("""
519
  """, unsafe_allow_html=True)
520
 
521
  text_input = st.text_area(
522
- "",
523
  height=200,
524
  placeholder="Paste your text here for AI detection analysis. Longer texts provide more accurate results. Whether it's an article, essay, or any written content, our advanced algorithms will analyze the linguistic patterns and provide instant results...",
525
  help="Enter the text you want to analyze. The system works best with at least 50 words.",
526
- key="text_input"
 
527
  )
528
 
529
  # Predict Button
 
72
  font-family: 'Playfair Display', serif;
73
  font-size: 4rem;
74
  font-weight: 700;
75
+ color: #d4af37;
 
 
 
76
  margin-bottom: 1.5rem;
77
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
78
  position: relative;
79
  z-index: 1;
80
+ /* Fallback gradient for better compatibility */
81
+ background: linear-gradient(135deg, #d4af37 0%, #ffd700 50%, #b8860b 100%);
82
+ -webkit-background-clip: text;
83
+ -webkit-text-fill-color: transparent;
84
+ background-clip: text;
85
+ }
86
+
87
+ /* Fallback for browsers that don't support background-clip */
88
+ @supports not (-webkit-background-clip: text) {
89
+ .main-title {
90
+ color: #d4af37 !important;
91
+ background: none !important;
92
+ }
93
  }
94
 
95
  .subtitle {
 
102
  font-weight: 400;
103
  position: relative;
104
  z-index: 1;
 
105
  }
106
 
107
  /* Feature Cards Grid */
 
528
  """, unsafe_allow_html=True)
529
 
530
  text_input = st.text_area(
531
+ "Text Input",
532
  height=200,
533
  placeholder="Paste your text here for AI detection analysis. Longer texts provide more accurate results. Whether it's an article, essay, or any written content, our advanced algorithms will analyze the linguistic patterns and provide instant results...",
534
  help="Enter the text you want to analyze. The system works best with at least 50 words.",
535
+ key="text_input",
536
+ label_visibility="hidden"
537
  )
538
 
539
  # Predict Button