Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- .ipynb_checkpoints/main-checkpoint.py +3 -3
- 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 ...
|
22 |
-
User: {question}
|
23 |
-
|
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 ...
|
22 |
-
User: {question}
|
23 |
-
|
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 |
|