Spaces:
Runtime error
Runtime error
Commit
·
c13c173
1
Parent(s):
e8a9b49
chore: fix bug
Browse files- main.py +1 -1
- src/agent/tools/text_summary.py +2 -1
main.py
CHANGED
|
@@ -39,7 +39,7 @@ def shutdown(updater: Update):
|
|
| 39 |
updater.stop()
|
| 40 |
updater.is_idle = False
|
| 41 |
|
| 42 |
-
def stop(update):
|
| 43 |
threading.Thread(target=shutdown(updater=update)).start()
|
| 44 |
|
| 45 |
async def hello(update: Update, context: CallbackContext) -> None:
|
|
|
|
| 39 |
updater.stop()
|
| 40 |
updater.is_idle = False
|
| 41 |
|
| 42 |
+
def stop(update: Update, context: CallbackContext):
|
| 43 |
threading.Thread(target=shutdown(updater=update)).start()
|
| 44 |
|
| 45 |
async def hello(update: Update, context: CallbackContext) -> None:
|
src/agent/tools/text_summary.py
CHANGED
|
@@ -57,7 +57,8 @@ class ConversationSummary():
|
|
| 57 |
|
| 58 |
async def process_conversation_summary(self, update: Update, context: CallbackContext) -> int:
|
| 59 |
message = update.message.text
|
| 60 |
-
await self.summarize(message,
|
|
|
|
| 61 |
return ConversationHandler.END
|
| 62 |
|
| 63 |
async def conversation_summary(self, update: Update, context: CallbackContext) -> str:
|
|
|
|
| 57 |
|
| 58 |
async def process_conversation_summary(self, update: Update, context: CallbackContext) -> int:
|
| 59 |
message = update.message.text
|
| 60 |
+
await self.summarize(message, 50)
|
| 61 |
+
await update.message.reply_text(f'{message}')
|
| 62 |
return ConversationHandler.END
|
| 63 |
|
| 64 |
async def conversation_summary(self, update: Update, context: CallbackContext) -> str:
|