Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -14,6 +14,8 @@ from huggingface_hub import InferenceClient, login
|
|
14 |
import time
|
15 |
import os
|
16 |
|
|
|
|
|
17 |
async def syncMessages():
|
18 |
print(os.listdir(f"data"))
|
19 |
if os.listdir("data") == []:
|
@@ -40,7 +42,6 @@ async def syncMessages():
|
|
40 |
continue
|
41 |
item = item.split(": ", 1)
|
42 |
st.markdown(f":blue[{item[0].split('GPT4 Correct ')[1]}]: {item[1]}")
|
43 |
-
|
44 |
lock_file_path = "test.txt"
|
45 |
|
46 |
if not os.path.exists(lock_file_path):
|
@@ -78,8 +79,6 @@ client = discord.Client(intents=intents)
|
|
78 |
|
79 |
launch_time = datetime.datetime.utcnow()
|
80 |
|
81 |
-
ph = st.empty()
|
82 |
-
|
83 |
@client.event
|
84 |
async def on_ready():
|
85 |
if clone:
|
|
|
14 |
import time
|
15 |
import os
|
16 |
|
17 |
+
ph = st.empty()
|
18 |
+
|
19 |
async def syncMessages():
|
20 |
print(os.listdir(f"data"))
|
21 |
if os.listdir("data") == []:
|
|
|
42 |
continue
|
43 |
item = item.split(": ", 1)
|
44 |
st.markdown(f":blue[{item[0].split('GPT4 Correct ')[1]}]: {item[1]}")
|
|
|
45 |
lock_file_path = "test.txt"
|
46 |
|
47 |
if not os.path.exists(lock_file_path):
|
|
|
79 |
|
80 |
launch_time = datetime.datetime.utcnow()
|
81 |
|
|
|
|
|
82 |
@client.event
|
83 |
async def on_ready():
|
84 |
if clone:
|