maahikachitagi commited on
Commit
b261dbb
Β·
verified Β·
1 Parent(s): 45a190a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.Image(source="webcam", type="pil", label="Capture Posture")
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])