Spaces:
Runtime error
Runtime error
Commit
·
4ae374b
1
Parent(s):
642e116
chore: last attempt
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 |
-
'6207542226:
|
| 47 |
|
| 48 |
run_agent(
|
| 49 |
agent=GirlfriendGPT(
|
|
|
|
| 43 |
|
| 44 |
def main():
|
| 45 |
app = Application.builder().token(
|
| 46 |
+
'6207542226:AAEm1WS20oypVLYe0ufp4J0Bxt_XBvpe6kA',).build()
|
| 47 |
|
| 48 |
run_agent(
|
| 49 |
agent=GirlfriendGPT(
|
src/agent/tools/conversation.py
CHANGED
|
@@ -50,5 +50,5 @@ class Conversation():
|
|
| 50 |
message = update.message.text
|
| 51 |
instruction = f'Instruction: given a dialog context, you need to response empathically.'
|
| 52 |
knowledge = ''
|
| 53 |
-
text =
|
| 54 |
await update.message.reply_text(f'{text}')
|
|
|
|
| 50 |
message = update.message.text
|
| 51 |
instruction = f'Instruction: given a dialog context, you need to response empathically.'
|
| 52 |
knowledge = ''
|
| 53 |
+
text = self.generate(instruction, knowledge,message)
|
| 54 |
await update.message.reply_text(f'{text}')
|