Spaces:
Running
Running
Nattapong Tapachoom
commited on
Commit
·
3ff354c
1
Parent(s):
5916cba
Enhance CSS for improved responsiveness and visual appeal in Gradio app
Browse files
app.py
CHANGED
@@ -159,13 +159,16 @@ def analyze_text(text: str, model_name: str) -> str:
|
|
159 |
|
160 |
# Enhanced CSS with better responsiveness
|
161 |
CUSTOM_CSS = """
|
162 |
-
.gradio-container {
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
|
|
|
|
|
|
169 |
.main-card {
|
170 |
background: rgba(255, 255, 255, 0.95);
|
171 |
border-radius: 16px;
|
@@ -334,4 +337,4 @@ if __name__ == "__main__":
|
|
334 |
show_error=True,
|
335 |
favicon_path=None, # Add your favicon path here
|
336 |
ssl_verify=False
|
337 |
-
)
|
|
|
159 |
|
160 |
# Enhanced CSS with better responsiveness
|
161 |
CUSTOM_CSS = """
|
162 |
+
.gradio-container {
|
163 |
+
max-width: 900px !important;
|
164 |
+
margin: auto !important;
|
165 |
+
background: #f4f7fa !important;
|
166 |
+
border-radius: 24px !important;
|
167 |
+
box-shadow: 0 8px 32px 0 #bdbdbd33;
|
168 |
+
border: 1.5px solid #e3e3e3;
|
169 |
+
min-height: 100vh;
|
170 |
+
padding-bottom: 32px;
|
171 |
+
}
|
172 |
.main-card {
|
173 |
background: rgba(255, 255, 255, 0.95);
|
174 |
border-radius: 16px;
|
|
|
337 |
show_error=True,
|
338 |
favicon_path=None, # Add your favicon path here
|
339 |
ssl_verify=False
|
340 |
+
)
|