Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -154,18 +154,42 @@ with gr.Blocks(css="""
|
|
| 154 |
margin-bottom: 20px;
|
| 155 |
'>
|
| 156 |
<h1 style='font-size: 89.5px; color: #fafdff;'>Welcome to <b><span style='color: #7cf8ff;'>Intervu</span></b></h1>
|
| 157 |
-
<p style='font-size: 22.1px; color: #fafdff; margin-top: 30px;'>Before you begin, complete Step 1 to select your interview type and Step 2 to enter your background. Practice is available through text, speech, or webcam.</p>
|
| 158 |
</div>
|
| 159 |
""")
|
| 160 |
|
| 161 |
|
| 162 |
# Step 1 - Choose Interview Type
|
| 163 |
-
gr.Markdown("### Step 1: Choose Interview Type")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 164 |
with gr.Row():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 165 |
btn1 = gr.Button("Technical")
|
| 166 |
btn2 = gr.Button("Competency-Based Interview")
|
| 167 |
btn3 = gr.Button("Case")
|
| 168 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 169 |
|
| 170 |
btn1.click(set_type, inputs=[gr.Textbox(value="Technical", visible=False), user_profile], outputs=[type_output, user_profile])
|
| 171 |
btn2.click(set_type, inputs=[gr.Textbox(value="Competency-Based Interview", visible=False), user_profile], outputs=[type_output, user_profile])
|
|
|
|
| 154 |
margin-bottom: 20px;
|
| 155 |
'>
|
| 156 |
<h1 style='font-size: 89.5px; color: #fafdff;'>Welcome to <b><span style='color: #7cf8ff;'>Intervu</span></b></h1>
|
| 157 |
+
<p style='font-size: 22.1px; color: #fafdff; margin-top: 30px; text-align: center;'>Before you begin, complete Step 1 to select your interview type and Step 2 to enter your background. Practice is available through text, speech, or webcam.</p>
|
| 158 |
</div>
|
| 159 |
""")
|
| 160 |
|
| 161 |
|
| 162 |
# Step 1 - Choose Interview Type
|
| 163 |
+
# gr.Markdown("### Step 1: Choose Interview Type")
|
| 164 |
+
# with gr.Row():
|
| 165 |
+
# btn1 = gr.Button("Technical")
|
| 166 |
+
# btn2 = gr.Button("Competency-Based Interview")
|
| 167 |
+
# btn3 = gr.Button("Case")
|
| 168 |
+
# type_output = gr.Textbox(label="Bot response", interactive=False)
|
| 169 |
with gr.Row():
|
| 170 |
+
|
| 171 |
+
# LEFT SIDE: Transparent box with interview type buttons
|
| 172 |
+
with gr.Column(scale=1):
|
| 173 |
+
gr.Markdown("""
|
| 174 |
+
<div style="
|
| 175 |
+
background: rgba(255, 255, 255, 0.1);
|
| 176 |
+
padding: 20px;
|
| 177 |
+
border-radius: 15px;
|
| 178 |
+
backdrop-filter: blur(5px);
|
| 179 |
+
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
|
| 180 |
+
">
|
| 181 |
+
<h3>Step 1: Choose Interview Type</h3>
|
| 182 |
+
<p>Select the type of interview you want to practice.</p>
|
| 183 |
+
</div>
|
| 184 |
+
""")
|
| 185 |
btn1 = gr.Button("Technical")
|
| 186 |
btn2 = gr.Button("Competency-Based Interview")
|
| 187 |
btn3 = gr.Button("Case")
|
| 188 |
+
|
| 189 |
+
# RIGHT SIDE: Bot response display (type_output)
|
| 190 |
+
with gr.Column(scale=2):
|
| 191 |
+
type_output = gr.Textbox(label="Bot Response", interactive=False)
|
| 192 |
+
|
| 193 |
|
| 194 |
btn1.click(set_type, inputs=[gr.Textbox(value="Technical", visible=False), user_profile], outputs=[type_output, user_profile])
|
| 195 |
btn2.click(set_type, inputs=[gr.Textbox(value="Competency-Based Interview", visible=False), user_profile], outputs=[type_output, user_profile])
|