Spaces:
Runtime error
Runtime error
Add avatar image to chatbot
Browse files
app.py
CHANGED
@@ -190,12 +190,16 @@ with gr.Blocks(theme=theme) as demo:
|
|
190 |
with gr.Column(variant='panel', scale=6):
|
191 |
chat_interface = gr.ChatInterface(
|
192 |
fn=mock_interviewer.chat_with_text,
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
additional_inputs=[job_role, company, job_description, behavioral_count, technical_count, situational_count, case_count],
|
194 |
retry_btn=None,
|
195 |
undo_btn=None)
|
196 |
|
197 |
-
chat_interface.chatbot.value = [(None, "Hi! I'm AiMI, your AI Mock Interview Assistant. Fill in the job details on the left and choose your question types. Ready? Allow webcam access, hit the red button to record, and use the chat if you need help. Let’s get started!")]
|
198 |
-
chat_interface.chatbot.height = '70vh'
|
199 |
chat_interface.load(mock_interviewer.clear_thread)
|
200 |
chat_interface.clear_btn.click(mock_interviewer.clear_thread)
|
201 |
|
|
|
190 |
with gr.Column(variant='panel', scale=6):
|
191 |
chat_interface = gr.ChatInterface(
|
192 |
fn=mock_interviewer.chat_with_text,
|
193 |
+
chatbot=gr.Chatbot(
|
194 |
+
value=[(None, "Hi! I'm AiMI, your AI Mock Interview Assistant. Fill in the job details on the left and choose your question types. Ready? Allow webcam access, hit the red button to record, and use the chat if you need help. Let’s get started!")],
|
195 |
+
height='70vh',
|
196 |
+
avatar_images=(None, 'aimi_logo.png'),
|
197 |
+
render=False
|
198 |
+
),
|
199 |
additional_inputs=[job_role, company, job_description, behavioral_count, technical_count, situational_count, case_count],
|
200 |
retry_btn=None,
|
201 |
undo_btn=None)
|
202 |
|
|
|
|
|
203 |
chat_interface.load(mock_interviewer.clear_thread)
|
204 |
chat_interface.clear_btn.click(mock_interviewer.clear_thread)
|
205 |
|