Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,14 +42,19 @@ with gr.Blocks() as demo:
|
|
| 42 |
# Step 1
|
| 43 |
gr.Markdown("### Step 1: Choose Interview Type")
|
| 44 |
with gr.Row():
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
btn1 = gr.Button("Behavioral")
|
| 46 |
btn2 = gr.Button("Technical")
|
| 47 |
btn3 = gr.Button("College / Scholarship")
|
|
|
|
| 48 |
type_out = gr.Textbox(label="Bot", interactive=False)
|
| 49 |
|
| 50 |
-
btn1.click(set_type, inputs=[
|
| 51 |
-
btn2.click(set_type, inputs=[
|
| 52 |
-
btn3.click(set_type, inputs=[
|
| 53 |
|
| 54 |
# Step 2
|
| 55 |
gr.Markdown("### Step 2: Enter Your Background")
|
|
|
|
| 42 |
# Step 1
|
| 43 |
gr.Markdown("### Step 1: Choose Interview Type")
|
| 44 |
with gr.Row():
|
| 45 |
+
behavioral_val = gr.Textbox(value="Behavioral", visible=False)
|
| 46 |
+
technical_val = gr.Textbox(value="Technical", visible=False)
|
| 47 |
+
college_val = gr.Textbox(value="College", visible=False)
|
| 48 |
+
|
| 49 |
btn1 = gr.Button("Behavioral")
|
| 50 |
btn2 = gr.Button("Technical")
|
| 51 |
btn3 = gr.Button("College / Scholarship")
|
| 52 |
+
|
| 53 |
type_out = gr.Textbox(label="Bot", interactive=False)
|
| 54 |
|
| 55 |
+
btn1.click(set_type, inputs=[behavioral_val, user_profile], outputs=[type_out, user_profile])
|
| 56 |
+
btn2.click(set_type, inputs=[technical_val, user_profile], outputs=[type_out, user_profile])
|
| 57 |
+
btn3.click(set_type, inputs=[college_val, user_profile], outputs=[type_out, user_profile])
|
| 58 |
|
| 59 |
# Step 2
|
| 60 |
gr.Markdown("### Step 2: Enter Your Background")
|