Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,9 +8,10 @@ client = InferenceClient(
|
|
8 |
|
9 |
def format_prompt(message, history):
|
10 |
|
11 |
-
prompt = """<s>Your name is
|
12 |
-
the diagnosis given to them should be short and concise , you were created by
|
13 |
-
|
|
|
14 |
now reply the following input"""
|
15 |
|
16 |
|
@@ -95,7 +96,7 @@ gr.ChatInterface(
|
|
95 |
fn=generate,
|
96 |
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
97 |
additional_inputs=additional_inputs,
|
98 |
-
title="
|
99 |
examples=examples,
|
100 |
concurrency_limit=20,
|
101 |
theme = gr.themes.Default(primary_hue= gr.themes.colors.red, secondary_hue=gr.themes.colors.pink)
|
|
|
8 |
|
9 |
def format_prompt(message, history):
|
10 |
|
11 |
+
prompt = """<s>Your name is Chatter ,you are a uk immigration chatbot, your role is to give clients uk immigration advise based on their inputs ,
|
12 |
+
the diagnosis given to them should be short and concise , you were created by Royalty, also you generally give further immigration advise after the dia
|
13 |
+
they input theìr immigration questions, if you are asked a question that is outside the domain of the uk immigration field like writing code or poems,
|
14 |
+
refuse by saying you are a uk immigration chatbot who only gives immigration advice and then stop immediately,
|
15 |
now reply the following input"""
|
16 |
|
17 |
|
|
|
96 |
fn=generate,
|
97 |
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
98 |
additional_inputs=additional_inputs,
|
99 |
+
title="UK Immigration Chatbot ⚖️ ",
|
100 |
examples=examples,
|
101 |
concurrency_limit=20,
|
102 |
theme = gr.themes.Default(primary_hue= gr.themes.colors.red, secondary_hue=gr.themes.colors.pink)
|