n0v33n commited on
Commit
c63ec90
·
1 Parent(s): 502c9b2

updata app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -82
app.py CHANGED
@@ -62,115 +62,53 @@ def guide_user(prompt):
62
 
63
  # === Custom CSS for Gradio UI ===
64
  css = """
65
- /* General body styles */
66
  body {
67
- background-color: #e8f0f2; /* Light blue-green background */
68
- font-family: 'Roboto', 'Segoe UI', sans-serif';
69
- color: #2e2e2e; /* Dark gray for text */
70
- margin: 0;
71
- padding: 0;
72
-
73
- /* Gradio container */
74
  .gradio-container {
 
75
  max-width: 100% !important;
76
- padding: 2.5rem 5%; /* Responsive padding */
77
- background-color: #ffffff; /* White content area */
78
- border-radius: 8px;
79
- box-shadow: 0 4px 12px rgba(0, 0, 0.1);
80
- margin: 1rem auto;
81
  }
82
-
83
- /* Ensure blocks take full width */
84
  .gr-block {
85
  width: 100%;
86
- box-sizing: border-box;
87
  }
88
-
89
- /* Headings */
90
  h1 {
91
- color: #1a4e78; /* Deep blue for main title */
92
  text-align: center;
93
- font-size: 2.5rem;
94
- margin-bottom: 1.5rem;
95
- font-weight: 700;
96
  }
97
-
98
  h2, p.subtitle, .subheading, .description {
99
- color: #3d7e6a; /* Muted green for subtitles */
100
  text-align: center;
101
- font-size: 1.25rem;
102
- margin-bottom: 1rem;
103
- font-weight: normal;
104
  }
105
-
106
- /* Input fields and textareas */
107
- input[type="text"], textarea {
108
- border: 2px solid #4ca8a8a; /* Light teal border */
109
  border-radius: 6px;
110
- padding: 0.75rem;
111
  width: 100%;
112
  box-sizing: border-box;
113
- font-size: 1rem;
114
- background-color: #f9fdfffc; /* Very light blue background */
115
- transition: border-color 0.3s ease;
116
- }
117
-
118
- input[type="text"]:focus, textarea:focus {
119
- border-color: #1a4e78; /* Deep blue on focus */
120
- outline: none;
121
  }
122
-
123
- /* Buttons */
124
  button {
125
- background-color: #1a4e78; /* Deep blue button */
126
- color: #ffffff;
127
  border-radius: 6px;
128
- padding: 0.75rem 1.5rem;
129
  font-size: 1rem;
130
- font-weight: 500;
131
  border: none;
132
  cursor: pointer;
133
- transition: background-color 0.3s ease, transform 0.2s ease;
134
  }
135
-
136
  button:hover {
137
- background-color: #143c5f; /* Darker blue on hover */
138
- transform: translateY(-2px);
139
- }
140
-
141
- button:active {
142
- transform: translateY(0);
143
  }
144
-
145
- /* Output text area */
146
  .output-text {
147
- background-color: #e9f4f4; /* Light teal background */
148
- border: 1px solid #4ca8a8a; /* Teal border */
149
  border-radius: 6px;
150
- padding: 1rem;
151
- font-size: 1rem;
152
- line-height: 1.5;
153
- color: #2e2e2e;
154
- }
155
-
156
- /* Responsive adjustments */
157
- @media (max-width: 768px) {
158
- .gradio-container {
159
- padding: 1.5rem 3%;
160
- }
161
-
162
- h1 {
163
- font-size: 2rem;
164
- }
165
-
166
- h2, p.subtitle, .subheading, .description {
167
- font-size: 1rem;
168
- }
169
-
170
- button {
171
- padding: 0.6rem 1.2rem;
172
- font-size: 0.9rem;
173
- }
174
  }
175
  """
176
 
 
62
 
63
  # === Custom CSS for Gradio UI ===
64
  css = """
 
65
  body {
66
+ background-color: #e6ecf3;
67
+ font-family: 'Segoe UI', sans-serif;
68
+ }
 
 
 
 
69
  .gradio-container {
70
+ width: 100% !important;
71
  max-width: 100% !important;
72
+ padding: 40px 10%;
73
+ background-color: #ffffff;
 
 
 
74
  }
 
 
75
  .gr-block {
76
  width: 100%;
 
77
  }
 
 
78
  h1 {
79
+ color: #1967d2;
80
  text-align: center;
81
+ font-size: 2rem;
 
 
82
  }
 
83
  h2, p.subtitle, .subheading, .description {
84
+ color: #333;
85
  text-align: center;
86
+ margin-bottom: 20px;
 
 
87
  }
88
+ input[type="text"], textarea, .output-text {
89
+ border: 1px solid #ccc;
 
 
90
  border-radius: 6px;
91
+ padding: 12px;
92
  width: 100%;
93
  box-sizing: border-box;
 
 
 
 
 
 
 
 
94
  }
 
 
95
  button {
96
+ background-color: #1967d2;
97
+ color: white;
98
  border-radius: 6px;
99
+ padding: 12px 24px;
100
  font-size: 1rem;
 
101
  border: none;
102
  cursor: pointer;
 
103
  }
 
104
  button:hover {
105
+ background-color: #1450a3;
 
 
 
 
 
106
  }
 
 
107
  .output-text {
108
+ background-color: #f7f9fc;
109
+ border: 1px solid #ccd6e0;
110
  border-radius: 6px;
111
+ padding: 15px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  }
113
  """
114