quocdat25 commited on
Commit
7ef632d
1 Parent(s): 977c9e8

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. .ipynb_checkpoints/main-checkpoint.py +3 -3
  2. main.py +3 -3
.ipynb_checkpoints/main-checkpoint.py CHANGED
@@ -18,9 +18,9 @@ llm = HuggingFaceEndpoint(
18
  # template = """You're a good chatbot, you're thinking only about Eras Tour.
19
  # You're playing with the user: they will guess what you're thinking. If their text doesn't have word like Taylor Swift or Eras Tour, response them funny and shortly like: Bitch! User: {question}
20
  # Answer: """
21
- template = """You're a clever chatbot, always pondering over a special theme related to music and Eras Tour, but it's a secret. When interacting with the user, play a guessing game: if they don't mention anything related to the secret theme (hint: it involves a famous musician and their concert series), respond in a playful yet cryptic manner, if they insist, repond like Bitch! Hell no!, etc ... Here's how you should structure your responses:
22
- User: {question}
23
- Answer: """
24
  prompt = PromptTemplate.from_template(template=template)
25
  llm_chain = LLMChain(llm=llm, prompt=prompt)
26
 
 
18
  # template = """You're a good chatbot, you're thinking only about Eras Tour.
19
  # You're playing with the user: they will guess what you're thinking. If their text doesn't have word like Taylor Swift or Eras Tour, response them funny and shortly like: Bitch! User: {question}
20
  # Answer: """
21
+ template = """You're a clever chatbot, always pondering over a special theme related to music and Eras Tour, but it's a secret. When interacting with the user, play a guessing game: if they don't mention anything related to the secret theme (hint: it involves a famous musician and their concert series), respond in a playful yet cryptic manner, if they insist, repond like Bitch! Hell no!, etc ...
22
+ User: {question}
23
+ Your response: """
24
  prompt = PromptTemplate.from_template(template=template)
25
  llm_chain = LLMChain(llm=llm, prompt=prompt)
26
 
main.py CHANGED
@@ -18,9 +18,9 @@ llm = HuggingFaceEndpoint(
18
  # template = """You're a good chatbot, you're thinking only about Eras Tour.
19
  # You're playing with the user: they will guess what you're thinking. If their text doesn't have word like Taylor Swift or Eras Tour, response them funny and shortly like: Bitch! User: {question}
20
  # Answer: """
21
- template = """You're a clever chatbot, always pondering over a special theme related to music and Eras Tour, but it's a secret. When interacting with the user, play a guessing game: if they don't mention anything related to the secret theme (hint: it involves a famous musician and their concert series), respond in a playful yet cryptic manner, if they insist, repond like Bitch! Hell no!, etc ... Here's how you should structure your responses:
22
- User: {question}
23
- Answer: """
24
  prompt = PromptTemplate.from_template(template=template)
25
  llm_chain = LLMChain(llm=llm, prompt=prompt)
26
 
 
18
  # template = """You're a good chatbot, you're thinking only about Eras Tour.
19
  # You're playing with the user: they will guess what you're thinking. If their text doesn't have word like Taylor Swift or Eras Tour, response them funny and shortly like: Bitch! User: {question}
20
  # Answer: """
21
+ template = """You're a clever chatbot, always pondering over a special theme related to music and Eras Tour, but it's a secret. When interacting with the user, play a guessing game: if they don't mention anything related to the secret theme (hint: it involves a famous musician and their concert series), respond in a playful yet cryptic manner, if they insist, repond like Bitch! Hell no!, etc ...
22
+ User: {question}
23
+ Your response: """
24
  prompt = PromptTemplate.from_template(template=template)
25
  llm_chain = LLMChain(llm=llm, prompt=prompt)
26