Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -98,7 +98,7 @@ with gr.Blocks() as demo:
|
|
98 |
'Sheldon', 'Raj', 'Penny',
|
99 |
'韦小宝', '乔峰', '神里绫华',
|
100 |
'雷电将军', '于谦'], label="characters", value='凉宫春日')
|
101 |
-
|
102 |
user_text.submit(fn=get_response, inputs=[user_role, user_text, ai_role, chatbot], outputs=[chatbot, user_text])
|
103 |
submit.click(fn=get_response, inputs=[user_role, user_text, ai_role, chatbot], outputs=[chatbot, user_text])
|
104 |
clean.click(clear, [user_role, user_text, chatbot], [user_role, user_text, chatbot])
|
|
|
98 |
'Sheldon', 'Raj', 'Penny',
|
99 |
'韦小宝', '乔峰', '神里绫华',
|
100 |
'雷电将军', '于谦'], label="characters", value='凉宫春日')
|
101 |
+
ai_role.change(get_image, ai_role, [role_image, user_role, user_text, chatbot])
|
102 |
user_text.submit(fn=get_response, inputs=[user_role, user_text, ai_role, chatbot], outputs=[chatbot, user_text])
|
103 |
submit.click(fn=get_response, inputs=[user_role, user_text, ai_role, chatbot], outputs=[chatbot, user_text])
|
104 |
clean.click(clear, [user_role, user_text, chatbot], [user_role, user_text, chatbot])
|