Closed ThomasCosyn closed 1 week ago
Hi @ThomasCosyn you can already achieve this by passing in a gr.Textbox
instance with the placeholder
supplied into the textbox
argument of gr.ChatInterfce
, see here: https://www.gradio.app/guides/creating-a-chatbot-fast#customizing-your-chatbot
Here is the code with the modification.
` class ChatInterface(Blocks): """ ChatInterface is Gradio's high-level abstraction for creating chatbot UIs, and allows you to create a web-based demo around a chatbot model in a few lines of code. Only one parameter is required: fn, which takes a function that governs the response of the chatbot based on the user input and chat history. Additional parameters can be used to control the appearance and behavior of the demo.
Works fine for me !