Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -202,7 +202,7 @@ with gr.Blocks() as demo:
|
|
| 202 |
background_btn.click(save_background, inputs=[background, user_profile], outputs=[background_output, user_profile])
|
| 203 |
|
| 204 |
gr.Markdown("### Step 3: Start Interview")
|
| 205 |
-
chatbot = gr.Chatbot(label="Interview Bot")
|
| 206 |
with gr.Row():
|
| 207 |
msg = gr.Textbox(label="Your message")
|
| 208 |
audio_input = gr.Audio(type="filepath", label="ποΈ Upload or Record your answer")
|
|
@@ -215,7 +215,7 @@ with gr.Blocks() as demo:
|
|
| 215 |
|
| 216 |
# β
Step 4: Webcam Posture Check
|
| 217 |
gr.Markdown("### Step 4: Webcam Posture Check")
|
| 218 |
-
webcam = gr.
|
| 219 |
posture_output = gr.Textbox(label="Posture Feedback")
|
| 220 |
posture_btn = gr.Button("Analyze Posture")
|
| 221 |
posture_btn.click(classify_image, inputs=[webcam], outputs=[posture_output])
|
|
|
|
| 202 |
background_btn.click(save_background, inputs=[background, user_profile], outputs=[background_output, user_profile])
|
| 203 |
|
| 204 |
gr.Markdown("### Step 3: Start Interview")
|
| 205 |
+
chatbot = gr.Chatbot(label="Interview Bot", type="messages")
|
| 206 |
with gr.Row():
|
| 207 |
msg = gr.Textbox(label="Your message")
|
| 208 |
audio_input = gr.Audio(type="filepath", label="ποΈ Upload or Record your answer")
|
|
|
|
| 215 |
|
| 216 |
# β
Step 4: Webcam Posture Check
|
| 217 |
gr.Markdown("### Step 4: Webcam Posture Check")
|
| 218 |
+
webcam = gr.Camera(label="Capture Posture", type="pil")
|
| 219 |
posture_output = gr.Textbox(label="Posture Feedback")
|
| 220 |
posture_btn = gr.Button("Analyze Posture")
|
| 221 |
posture_btn.click(classify_image, inputs=[webcam], outputs=[posture_output])
|