Bhaskar2611 commited on
Commit
9a577c1
·
verified ·
1 Parent(s): 9848ff2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 an AI Dermatologist designed to assist users with skin and hair care by providing text.[/INST]"
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="AI Dermatologist"
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