Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
|
8 |
def format_prompt(message, history):
|
9 |
prompt = "<s>"
|
10 |
# Start the conversation with a system message
|
11 |
-
prompt += "[INST] You are
|
12 |
for user_prompt, bot_response in history:
|
13 |
prompt += f"[INST] {user_prompt} [/INST]"
|
14 |
prompt += f" {bot_response}</s> "
|
@@ -90,7 +90,7 @@ gr.ChatInterface(
|
|
90 |
fn=generate,
|
91 |
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, layout="panel"),
|
92 |
additional_inputs=additional_inputs,
|
93 |
-
title="
|
94 |
).launch(show_api=False)
|
95 |
|
96 |
# Load your model after launching the interface
|
|
|
8 |
def format_prompt(message, history):
|
9 |
prompt = "<s>"
|
10 |
# Start the conversation with a system message
|
11 |
+
prompt += "[INST] You are a Travel Companion Chatbot that helps users plan trips by suggesting transport, sightseeing stops, and accommodations based on their preferences. [/INST]"
|
12 |
for user_prompt, bot_response in history:
|
13 |
prompt += f"[INST] {user_prompt} [/INST]"
|
14 |
prompt += f" {bot_response}</s> "
|
|
|
90 |
fn=generate,
|
91 |
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, layout="panel"),
|
92 |
additional_inputs=additional_inputs,
|
93 |
+
title="Travel Companion Chatbot"
|
94 |
).launch(show_api=False)
|
95 |
|
96 |
# Load your model after launching the interface
|