Spaces:
Runtime error
Runtime error
Radosław Wolnik
commited on
Commit
·
f495df9
1
Parent(s):
6b9139d
.env introduced
Browse files- .env +0 -1
- app.py +8 -2
- requirements.txt +6 -3
.env
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
TF_ENABLE_ONEDNN_OPTS=0
|
|
|
|
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
import discord
|
2 |
import random
|
3 |
from discord.ext import commands
|
4 |
from ChatAI.chat_ai import pipe as ai
|
@@ -92,4 +92,10 @@ async def on_ready():
|
|
92 |
|
93 |
await channel.send(f"{bot.user} logged in, runnin on 'huggingface.co/spaces")
|
94 |
|
95 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import discord
|
2 |
import random
|
3 |
from discord.ext import commands
|
4 |
from ChatAI.chat_ai import pipe as ai
|
|
|
92 |
|
93 |
await channel.send(f"{bot.user} logged in, runnin on 'huggingface.co/spaces")
|
94 |
|
95 |
+
|
96 |
+
import os
|
97 |
+
from dotenv import load_dotenv
|
98 |
+
load_dotenv()
|
99 |
+
DISCORD_TOKEN_CHATTER = os.getenv("DISCORD_TOKEN_CHATTER")
|
100 |
+
|
101 |
+
bot.run(DISCORD_TOKEN_CHATTER)
|
requirements.txt
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
transformers
|
2 |
huggingface_hub==0.25.2
|
3 |
-
discord.py
|
4 |
-
discord
|
5 |
-
torch
|
|
|
|
|
|
|
|
1 |
transformers
|
2 |
huggingface_hub==0.25.2
|
3 |
+
discord.py~=2.4.0
|
4 |
+
discord~=2.3.2
|
5 |
+
torch
|
6 |
+
six
|
7 |
+
python-dotenv~=1.0.1
|
8 |
+
huggingface-hub~=0.25.2
|