Skip to content

Commit

Permalink
feat: connect the slack.py to dynamodb
Browse files Browse the repository at this point in the history
  • Loading branch information
bik1111 committed Jan 11, 2024
1 parent 5da7a1c commit 3edfa4c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions slack/slack.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import config
from sentence_transformers import SentenceTransformer, util
import sys
import os
from pathlib import Path
sys.path.append(str(Path(__file__).resolve().parent.parent))
from response import get_query_sim_top_k
Expand All @@ -11,6 +12,12 @@
from slack_sdk import WebClient
from slack_sdk.errors import SlackApiError

os.environ['AWS_PROFILE'] = "Profile1"
os.environ['AWS_DEFAULT_REGION'] = "ap-northeast-2"
print("[INFO:] Connecting to cloud")



app = App(token=config.bot_token)
model = SentenceTransformer("jhgan/ko-sroberta-multitask")

Expand Down

0 comments on commit 3edfa4c

Please sign in to comment.