Spaces:
Running
Running
add examples and flag
Browse files
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()
|