Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ ph = st.empty()
|
|
| 44 |
|
| 45 |
async def syncMessages():
|
| 46 |
print(os.listdir("data"))
|
| 47 |
-
with ph.
|
| 48 |
dirs = st.tabs(os.listdir("data"))
|
| 49 |
i = -1
|
| 50 |
for dir in os.listdir("data"):
|
|
@@ -58,9 +58,9 @@ async def syncMessages():
|
|
| 58 |
with open(f"data/{dir}/{file}", "r") as f:
|
| 59 |
o = f.read().split("<|end_of_turn|>")
|
| 60 |
for item in o:
|
| 61 |
-
|
| 62 |
-
st.markdown(f":blue[{
|
| 63 |
-
print(
|
| 64 |
|
| 65 |
@client.event
|
| 66 |
async def on_ready():
|
|
|
|
| 44 |
|
| 45 |
async def syncMessages():
|
| 46 |
print(os.listdir("data"))
|
| 47 |
+
with ph.empty():
|
| 48 |
dirs = st.tabs(os.listdir("data"))
|
| 49 |
i = -1
|
| 50 |
for dir in os.listdir("data"):
|
|
|
|
| 58 |
with open(f"data/{dir}/{file}", "r") as f:
|
| 59 |
o = f.read().split("<|end_of_turn|>")
|
| 60 |
for item in o:
|
| 61 |
+
item = item.split(": ", 1)
|
| 62 |
+
st.markdown(f":blue[{item[0]}]: {item[1]}")
|
| 63 |
+
print(item)
|
| 64 |
|
| 65 |
@client.event
|
| 66 |
async def on_ready():
|