abhi1nandy2 commited on
Commit
390b0e1
·
verified ·
1 Parent(s): a39ee59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,7 +21,7 @@ def tag_visible(element):
21
 
22
  text_list = []
23
  homepage_url = "https://sites.google.com/view/abhilashnandy/home/"
24
- extensions = ["", "about", "curriculum-vitae", "pmrf-profile-page", "publications"]
25
  for ext in extensions:
26
  url_text = get_text_from_url(homepage_url+ext)
27
  text_list.append(url_text)
@@ -32,7 +32,7 @@ For more information on `huggingface_hub` Inference API support, please check th
32
  """
33
  client = InferenceClient("microsoft/DialoGPT-small")#("TheBloke/TinyLlama-1.1B-Chat-v1.0-GPTQ")#("TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF")#("QuantFactory/Meta-Llama-3-8B-Instruct-GGUF")#("HuggingFaceH4/zephyr-7b-beta")
34
 
35
- SYSTEM_MESSAGE = "You are a QA chatbot -\n"#"You are a QA chatbot to answer queries on my homepage that has the following information -\n\n" + "\n\n".join(text_list)
36
 
37
  def respond(
38
  message,
 
21
 
22
  text_list = []
23
  homepage_url = "https://sites.google.com/view/abhilashnandy/home/"
24
+ extensions = [""]#, "about", "curriculum-vitae", "pmrf-profile-page", "publications"]
25
  for ext in extensions:
26
  url_text = get_text_from_url(homepage_url+ext)
27
  text_list.append(url_text)
 
32
  """
33
  client = InferenceClient("microsoft/DialoGPT-small")#("TheBloke/TinyLlama-1.1B-Chat-v1.0-GPTQ")#("TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF")#("QuantFactory/Meta-Llama-3-8B-Instruct-GGUF")#("HuggingFaceH4/zephyr-7b-beta")
34
 
35
+ SYSTEM_MESSAGE = "You are a QA chatbot -\n"You are a QA chatbot to answer queries on my homepage that has the following information -\n\n" + "\n\n".join(text_list)
36
 
37
  def respond(
38
  message,