sofzcc commited on
Commit
e8795ba
·
verified ·
1 Parent(s): c089e7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -293,16 +293,16 @@ knowledge base to show how retrieval-based self-service can work.
293
  """
294
 
295
  chat = gr.ChatInterface(
296
- fn=chat_respond,
297
  title="Self-Service KB Assistant",
298
  description=description,
299
- type="messages", # use new-style message format
300
  examples=[
301
  "What makes a good knowledge base article?",
302
  "How could a KB assistant help agents?",
303
  "Why is self-service important for customer support?",
304
  ],
305
- cache_examples=False, # avoid example pre-caching issues on HF Spaces
306
  )
307
 
308
 
 
293
  """
294
 
295
  chat = gr.ChatInterface(
296
+ role="assistant",
297
  title="Self-Service KB Assistant",
298
  description=description,
299
+ type="messages",
300
  examples=[
301
  "What makes a good knowledge base article?",
302
  "How could a KB assistant help agents?",
303
  "Why is self-service important for customer support?",
304
  ],
305
+ cache_examples=False,
306
  )
307
 
308