sidharthg commited on
Commit
6d95635
·
verified ·
1 Parent(s): 8a07789

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -151,6 +151,17 @@ def tokenize_and_visualize(text: str, tokenizer: MarathiBPETokenizer) -> Tuple[s
151
  def create_app(tokenizer: MarathiBPETokenizer) -> gr.Blocks:
152
  """Build Gradio Blocks UI with refined styling, hover animation, and tooltips."""
153
  css = """
 
 
 
 
 
 
 
 
 
 
 
154
  :root{
155
  --panel-bg:#0b2540;
156
  --tile-azure:#083E8C;
@@ -289,4 +300,3 @@ def main():
289
 
290
  if __name__ == "__main__":
291
  main()
292
-
 
151
  def create_app(tokenizer: MarathiBPETokenizer) -> gr.Blocks:
152
  """Build Gradio Blocks UI with refined styling, hover animation, and tooltips."""
153
  css = """
154
+ /* Force light theme override on Hugging Face Spaces */
155
+ html, body, .gradio-container {
156
+ background: #F8FBFF !important;
157
+ color: #0B2540 !important;
158
+ }
159
+
160
+ /* Optional: reset the dark HuggingFace container styles */
161
+ body, .main, .app, #root {
162
+ background: #F8FBFF !important;
163
+ }
164
+
165
  :root{
166
  --panel-bg:#0b2540;
167
  --tile-azure:#083E8C;
 
300
 
301
  if __name__ == "__main__":
302
  main()