Rahatara commited on
Commit
a364db8
·
verified ·
1 Parent(s): c18b7f0

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +33 -0
app.py ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ # CSS to change tab colors
4
+ CUSTOM_CSS = """
5
+ .tabs {
6
+ background-color: #4caf50 !important; /* Change tab background color */
7
+ color: white !important; /* Change tab text color */
8
+ font-weight: bold !important;
9
+ }
10
+ .tabs .tab {
11
+ padding: 10px;
12
+ border-radius: 8px;
13
+ margin: 5px;
14
+ }
15
+ .tabs .tab:hover {
16
+ background-color: #45a049 !important; /* Change tab hover color */
17
+ }
18
+ .tabs .tab-selected {
19
+ background-color: #2e7d32 !important; /* Change selected tab color */
20
+ color: white !important;
21
+ }
22
+ """
23
+
24
+ # Create the Gradio app with a theme and custom CSS
25
+ with gr.Blocks(css=CUSTOM_CSS, theme=gr.themes.Monochrome()) as app:
26
+ with gr.Tab("Box Breathing"):
27
+ gr.Markdown("This is the content for Box Breathing.")
28
+ with gr.Tab("Calming"):
29
+ gr.Markdown("This is the content for Calming.")
30
+ with gr.Tab("5-5-5"):
31
+ gr.Markdown("This is the content for 5-5-5.")
32
+
33
+ app.launch()