maahikachitagi commited on
Commit
182d403
·
verified ·
1 Parent(s): a676e0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +58 -2
app.py CHANGED
@@ -122,8 +122,64 @@ def generate_feedback(user_profile):
122
  feedback.append(fb)
123
  return "\n".join(feedback)
124
 
125
- # creating the visual elements
126
- with gr.Blocks() as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  user_profile = gr.State({"interview_type": "", "field": "", "interview_in_progress": False})
128
  chat_history = gr.State([])
129
 
 
122
  feedback.append(fb)
123
  return "\n".join(feedback)
124
 
125
+
126
+ # Entire app with CSS styling applied
127
+ with gr.Blocks(css="""
128
+ body {
129
+ background-color: #f2f4f8;
130
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
131
+ }
132
+ h1, h2, h3 {
133
+ text-align: center;
134
+ color: #2c3e50;
135
+ margin-bottom: 10px;
136
+ }
137
+ img {
138
+ display: block;
139
+ margin-left: auto;
140
+ margin-right: auto;
141
+ border-radius: 15px;
142
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
143
+ }
144
+ button {
145
+ font-size: 16px;
146
+ padding: 12px 24px;
147
+ background-color: #3B82F6;
148
+ color: white;
149
+ border: none;
150
+ border-radius: 10px;
151
+ transition: background-color 0.3s ease;
152
+ }
153
+ button:hover {
154
+ background-color: #2563EB;
155
+ }
156
+ .gr-chatbot {
157
+ background-color: #ffffff;
158
+ border-radius: 15px;
159
+ padding: 20px;
160
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
161
+ max-height: 600px;
162
+ overflow-y: auto;
163
+ }
164
+ textarea {
165
+ font-size: 15px;
166
+ border-radius: 10px;
167
+ padding: 10px;
168
+ border: 1px solid #ddd;
169
+ }
170
+ input[type="text"] {
171
+ font-size: 15px;
172
+ border-radius: 10px;
173
+ padding: 10px;
174
+ border: 1px solid #ddd;
175
+ }
176
+ .gr-textbox {
177
+ background-color: #f9fafb;
178
+ border-radius: 10px;
179
+ padding: 10px;
180
+ }
181
+ """) as demo:
182
+
183
  user_profile = gr.State({"interview_type": "", "field": "", "interview_in_progress": False})
184
  chat_history = gr.State([])
185