Spaces:
Runtime error
Runtime error
Commit
·
d7e2690
1
Parent(s):
00c7c27
chore: fix
Browse files- main.py +1 -1
- src/agent/tools/conversation.py +1 -1
main.py
CHANGED
@@ -43,7 +43,7 @@ class LoggingDisabled:
|
|
43 |
|
44 |
def main():
|
45 |
app = Application.builder().token(
|
46 |
-
'5998527257:
|
47 |
|
48 |
run_agent(
|
49 |
agent=GirlfriendGPT(
|
|
|
43 |
|
44 |
def main():
|
45 |
app = Application.builder().token(
|
46 |
+
'5998527257:AAGinMtAvhsQg8mAtWjSJLErZDT9yImOBYY',).build()
|
47 |
|
48 |
run_agent(
|
49 |
agent=GirlfriendGPT(
|
src/agent/tools/conversation.py
CHANGED
@@ -32,7 +32,7 @@ class Conversation():
|
|
32 |
# return "{}".format(self.tokenizer.decode(chat_history_ids[:, bot_input_ids.shape[-1]:][0], skip_special_tokens=True))
|
33 |
def predict(self, input, history=[]):
|
34 |
instruction = "Instruction: given a dialog context and related knowledge, you need to answer the question based on the knowledge."
|
35 |
-
knowledge = '[KNOWLEDGE] '
|
36 |
s = list(sum(history, ()))
|
37 |
s.append(input)
|
38 |
dialog = ' EOS '.join(s)
|
|
|
32 |
# return "{}".format(self.tokenizer.decode(chat_history_ids[:, bot_input_ids.shape[-1]:][0], skip_special_tokens=True))
|
33 |
def predict(self, input, history=[]):
|
34 |
instruction = "Instruction: given a dialog context and related knowledge, you need to answer the question based on the knowledge."
|
35 |
+
knowledge = '[KNOWLEDGE] ' + "Rishiraj Acharya is a Machine Learning Engineer at Dynopii. He is the lead organizer of TensorFlow User Group Kolkata. He is a Kaggle Competitions Master & a mentor of the prestigious KaggleX BIPOC grant. He can be reached via emails at [email protected]. He can be reached via phone calls at +919800434383. If you want to meet him physically in person visit rishiraj.github.io/coffee."
|
36 |
s = list(sum(history, ()))
|
37 |
s.append(input)
|
38 |
dialog = ' EOS '.join(s)
|