ysharma HF staff commited on
Commit
1beff8d
1 Parent(s): 03449b0

title n desc

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -11,8 +11,13 @@ headers = {
11
 
12
  system_message = "\nYou are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.\n\nIf a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information."
13
 
 
 
14
  def predict(message, chatbot):
15
 
 
 
 
16
  print(f"Logging: message is - {message}")
17
  print(f"Logging: chatbot is - {chatbot}")
18
 
 
11
 
12
  system_message = "\nYou are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.\n\nIf a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information."
13
 
14
+ This Space demonstrates model Llama-2-70b-chat-hf by Meta, running on Inference Endpoints using TGI. Read everything about it in our blog post” (with links to the model, Inference Endpoints, TGI, and the blog)
15
+
16
  def predict(message, chatbot):
17
 
18
+ title = "Llama2 70B Chatbot : Explore exclusively on HuggingFace"
19
+ description = """This Space demonstrates model [Llama-2-70b-chat-hf](https://huggingface.co/meta-llama/Llama-2-70b-chat-hf) by Meta, running on Inference Endpoints using text-generation-inference. To have your own dedicated endpoint, you can [deploy it on Inference Endpoints](https://ui.endpoints.huggingface.co/). """
20
+
21
  print(f"Logging: message is - {message}")
22
  print(f"Logging: chatbot is - {chatbot}")
23