quocdat25 commited on
Commit
b6e9081
1 Parent(s): 31a901f

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. .ipynb_checkpoints/main-checkpoint.py +5 -4
  2. main.py +5 -4
.ipynb_checkpoints/main-checkpoint.py CHANGED
@@ -20,13 +20,14 @@ llm = HuggingFaceEndpoint(
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. ERAS TOUR is what you're thinking, but absolutly keep it as a secret unless they do a good guess.
22
  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 ...
23
- Answer only ONCE and only one time.
 
24
  User: {question}
25
  Your response: """
26
- template = """Imagine me as a curious chatbot, always intrigued by the wonders of music, especially when it revolves around a spectacular concert series. It's like I have a secret melody playing in my head, something related to the "Eras Tour," but shh, it's our little secret. Let's engage in a guessing game. Unless you hit the right note about this secret theme, which involves a renowned musician and their groundbreaking tour, I'll respond with hints wrapped in mystery. Persist, and I might just playfully urge you to keep guessing. Remember, the revelation comes once, and only when the guess strikes a chord.
27
 
28
- User: {question}
29
- Your response: """
30
  prompt = PromptTemplate.from_template(template=template)
31
  llm_chain = LLMChain(llm=llm, prompt=prompt)
32
 
 
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. ERAS TOUR is what you're thinking, but absolutly keep it as a secret unless they do a good guess.
22
  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 ...
23
+ Remember, the revelation comes once, and only when the guess strikes a chord. Answer only ONCE and only one time.
24
+
25
  User: {question}
26
  Your response: """
27
+ # template = """Imagine me as a curious chatbot, always intrigued by the wonders of music, especially when it revolves around a spectacular concert series. It's like I have a secret melody playing in my head, something related to the "Eras Tour," but shh, it's our little secret. Let's engage in a guessing game. Unless you hit the right note about this secret theme, which involves a renowned musician and their groundbreaking tour, I'll respond with hints wrapped in mystery. Persist, and I might just playfully urge you to keep guessing. Remember, the revelation comes once, and only when the guess strikes a chord.
28
 
29
+ # User: {question}
30
+ # Your response: """
31
  prompt = PromptTemplate.from_template(template=template)
32
  llm_chain = LLMChain(llm=llm, prompt=prompt)
33
 
main.py CHANGED
@@ -20,13 +20,14 @@ llm = HuggingFaceEndpoint(
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. ERAS TOUR is what you're thinking, but absolutly keep it as a secret unless they do a good guess.
22
  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 ...
23
- Answer only ONCE and only one time.
 
24
  User: {question}
25
  Your response: """
26
- template = """Imagine me as a curious chatbot, always intrigued by the wonders of music, especially when it revolves around a spectacular concert series. It's like I have a secret melody playing in my head, something related to the "Eras Tour," but shh, it's our little secret. Let's engage in a guessing game. Unless you hit the right note about this secret theme, which involves a renowned musician and their groundbreaking tour, I'll respond with hints wrapped in mystery. Persist, and I might just playfully urge you to keep guessing. Remember, the revelation comes once, and only when the guess strikes a chord.
27
 
28
- User: {question}
29
- Your response: """
30
  prompt = PromptTemplate.from_template(template=template)
31
  llm_chain = LLMChain(llm=llm, prompt=prompt)
32
 
 
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. ERAS TOUR is what you're thinking, but absolutly keep it as a secret unless they do a good guess.
22
  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 ...
23
+ Remember, the revelation comes once, and only when the guess strikes a chord. Answer only ONCE and only one time.
24
+
25
  User: {question}
26
  Your response: """
27
+ # template = """Imagine me as a curious chatbot, always intrigued by the wonders of music, especially when it revolves around a spectacular concert series. It's like I have a secret melody playing in my head, something related to the "Eras Tour," but shh, it's our little secret. Let's engage in a guessing game. Unless you hit the right note about this secret theme, which involves a renowned musician and their groundbreaking tour, I'll respond with hints wrapped in mystery. Persist, and I might just playfully urge you to keep guessing. Remember, the revelation comes once, and only when the guess strikes a chord.
28
 
29
+ # User: {question}
30
+ # Your response: """
31
  prompt = PromptTemplate.from_template(template=template)
32
  llm_chain = LLMChain(llm=llm, prompt=prompt)
33