Prajith04 commited on
Commit
2b25ee7
·
1 Parent(s): cfb597a

add examples and flag

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -58,5 +58,15 @@ def chat_fn(message, history_list):
58
 
59
  return response
60
 
61
- chatbot = gr.ChatInterface(fn=chat_fn, title="🛠️ Customer Support Chatbot")
 
 
 
 
 
 
 
 
 
 
62
  chatbot.launch()
 
58
 
59
  return response
60
 
61
+ chatbot = gr.ChatInterface(fn=chat_fn, title="🛠️ Customer Support Chatbot",
62
+ flagging_mode="manual",flagging_options=["solved","Not solved"],
63
+ examples=["""Dear Support Team, we are encountering a significant problem
64
+ with our AWS Management Service that is impacting our service availability.
65
+ An immediate fix is essential to reinstate normal deployment operations.""","""
66
+ I am writing to express concern about my HP DeskJet 3755 printer, which is malfunctioning.
67
+ It encounters errors when printing wirelessly,
68
+ affecting all connected devices in my home network.
69
+ This has significantly disrupted my ability to manage daily tasks.
70
+ Could you please assist in diagnosing and resolving this issue? Any help would be appreciated.
71
+ """])
72
  chatbot.launch()