gabykim commited on
Commit
465ff1f
·
1 Parent(s): eec4a03

placeholder configuration

Browse files
src/knowlang/chat_bot/chat_interface.py CHANGED
@@ -195,7 +195,7 @@ class CodeQAChatInterface:
195
 
196
  msg = gr.Textbox(
197
  label="Ask about the codebase",
198
- placeholder="what are the key components required to implement a new quantization method?",
199
  container=False,
200
  scale=7
201
  )
 
195
 
196
  msg = gr.Textbox(
197
  label="Ask about the codebase",
198
+ placeholder=self.config.chat.interface_placeholder,
199
  container=False,
200
  scale=7
201
  )
src/knowlang/configs/chat_config.py CHANGED
@@ -21,6 +21,10 @@ class ChatConfig(BaseSettings):
21
  default="Ask questions about the codebase and I'll help you understand it!",
22
  description="Description shown in the chat interface"
23
  )
 
 
 
 
24
  max_length_per_chunk: int = Field(
25
  default=8000,
26
  description="Maximum number of characters per chunk"
 
21
  default="Ask questions about the codebase and I'll help you understand it!",
22
  description="Description shown in the chat interface"
23
  )
24
+ interface_placeholder: str = Field(
25
+ default="Ask about the codebase",
26
+ description="Placeholder text in the chat interface"
27
+ )
28
  max_length_per_chunk: int = Field(
29
  default=8000,
30
  description="Maximum number of characters per chunk"