fmasterpro27 commited on
Commit
3d8b4ef
·
verified ·
1 Parent(s): 28d82b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +111 -2
app.py CHANGED
@@ -59,10 +59,119 @@ examples = [
59
  ]
60
 
61
  css = """
 
 
 
 
 
 
 
62
  #col-container {
63
- margin: 0 auto;
64
- max-width: 640px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  """
67
 
68
  with gr.Blocks(css=css) as demo:
 
59
  ]
60
 
61
  css = """
62
+ /* ===== General Layout ===== */
63
+ body {
64
+ background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
65
+ font-family: 'Poppins', sans-serif;
66
+ color: #f5f5f5;
67
+ }
68
+
69
  #col-container {
70
+ margin: 2rem auto;
71
+ max-width: 720px;
72
+ padding: 20px;
73
+ background: rgba(30, 30, 50, 0.85);
74
+ border-radius: 20px;
75
+ box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
76
+ }
77
+
78
+ /* ===== Markdown / Headers ===== */
79
+ h1, h2, h3, .gr-text, .gr-markdown {
80
+ color: #00ffff;
81
+ text-align: center;
82
+ text-shadow: 0 0 10px #00ffff;
83
+ }
84
+
85
+ /* ===== Text Input Styling ===== */
86
+ input[type="text"], textarea {
87
+ background: rgba(50, 50, 70, 0.8);
88
+ color: #00ffff;
89
+ border: 2px solid #00ffff;
90
+ border-radius: 15px;
91
+ padding: 10px;
92
+ font-size: 1rem;
93
+ transition: all 0.3s ease;
94
+ }
95
+
96
+ input[type="text"]:focus, textarea:focus {
97
+ border-color: #ff00ff;
98
+ box-shadow: 0 0 10px #ff00ff;
99
+ outline: none;
100
  }
101
+
102
+ /* ===== Buttons ===== */
103
+ button, .gr-button {
104
+ background: linear-gradient(90deg, #00ffff, #ff00ff);
105
+ color: #000;
106
+ border: none;
107
+ border-radius: 15px;
108
+ padding: 12px 25px;
109
+ font-weight: bold;
110
+ font-size: 1rem;
111
+ cursor: pointer;
112
+ transition: all 0.3s ease;
113
+ box-shadow: 0 0 20px rgba(0,255,255,0.5);
114
+ }
115
+
116
+ button:hover, .gr-button:hover {
117
+ transform: scale(1.05);
118
+ box-shadow: 0 0 25px rgba(255,0,255,0.7);
119
+ }
120
+
121
+ /* ===== Image Output Styling ===== */
122
+ .gr-image-container img {
123
+ border-radius: 20px;
124
+ border: 3px solid #00ffff;
125
+ box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
126
+ transition: transform 0.3s ease, box-shadow 0.3s ease;
127
+ }
128
+
129
+ .gr-image-container img:hover {
130
+ transform: scale(1.05);
131
+ box-shadow: 0 0 50px rgba(255, 0, 255, 0.7);
132
+ }
133
+
134
+ /* ===== Sliders / Controls ===== */
135
+ .gr-slider {
136
+ accent-color: #00ffff;
137
+ }
138
+
139
+ .gr-accordion {
140
+ background: rgba(50,50,70,0.6);
141
+ border-radius: 15px;
142
+ padding: 10px;
143
+ margin-top: 15px;
144
+ }
145
+
146
+ .gr-accordion summary {
147
+ color: #ff00ff;
148
+ font-weight: bold;
149
+ cursor: pointer;
150
+ }
151
+
152
+ /* ===== Examples ===== */
153
+ .gr-examples {
154
+ background: rgba(50,50,70,0.7);
155
+ border-radius: 15px;
156
+ padding: 10px;
157
+ box-shadow: 0 0 20px rgba(0,255,255,0.3);
158
+ }
159
+ .gr-examples button {
160
+ background: #00ffff;
161
+ color: #000;
162
+ margin: 5px;
163
+ transition: all 0.3s ease;
164
+ }
165
+ .gr-examples button:hover {
166
+ background: #ff00ff;
167
+ transform: scale(1.1);
168
+ }
169
+
170
+ /* ===== Footer / Misc ===== */
171
+ .gr-row {
172
+ margin-top: 15px;
173
+ }
174
+
175
  """
176
 
177
  with gr.Blocks(css=css) as demo: