Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,10 +17,10 @@ intents.guilds = True
|
|
17 |
intents.guild_messages = True
|
18 |
|
19 |
# ์ถ๋ก API ํด๋ผ์ด์ธํธ ์ค์
|
20 |
-
hf_client = InferenceClient("meta-llama/Meta-Llama-3-70B-Instruct", token=os.getenv("
|
21 |
|
22 |
# ํน์ ์ฑ๋ ID
|
23 |
-
SPECIFIC_CHANNEL_ID = int(os.getenv("
|
24 |
|
25 |
# ๋ํ ํ์คํ ๋ฆฌ๋ฅผ ์ ์ฅํ ์ ์ญ ๋ณ์
|
26 |
conversation_history = []
|
@@ -124,4 +124,4 @@ async def generate_response(message):
|
|
124 |
|
125 |
if __name__ == "__main__":
|
126 |
discord_client = MyClient(intents=intents)
|
127 |
-
discord_client.run(os.getenv('
|
|
|
17 |
intents.guild_messages = True
|
18 |
|
19 |
# ์ถ๋ก API ํด๋ผ์ด์ธํธ ์ค์
|
20 |
+
hf_client = InferenceClient("meta-llama/Meta-Llama-3-70B-Instruct", token=os.getenv("HF_TOKEN"))
|
21 |
|
22 |
# ํน์ ์ฑ๋ ID
|
23 |
+
SPECIFIC_CHANNEL_ID = int(os.getenv("DISCORD_CHANNEL_ID"))
|
24 |
|
25 |
# ๋ํ ํ์คํ ๋ฆฌ๋ฅผ ์ ์ฅํ ์ ์ญ ๋ณ์
|
26 |
conversation_history = []
|
|
|
124 |
|
125 |
if __name__ == "__main__":
|
126 |
discord_client = MyClient(intents=intents)
|
127 |
+
discord_client.run(os.getenv('DISCORD_TOKEN'))
|