Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -11,6 +11,7 @@ from PIL import Image
|
|
11 |
from colorama import Fore, Style
|
12 |
import streamlit as st
|
13 |
from huggingface_hub import InferenceClient, login
|
|
|
14 |
|
15 |
import os
|
16 |
|
@@ -21,7 +22,10 @@ if not os.path.exists(lock_file_path):
|
|
21 |
f.write("Running!")
|
22 |
else:
|
23 |
print("Streamlit app is already running, only streaming bot activity.")
|
24 |
-
|
|
|
|
|
|
|
25 |
|
26 |
try:
|
27 |
os.mkdir("data")
|
|
|
11 |
from colorama import Fore, Style
|
12 |
import streamlit as st
|
13 |
from huggingface_hub import InferenceClient, login
|
14 |
+
import time
|
15 |
|
16 |
import os
|
17 |
|
|
|
22 |
f.write("Running!")
|
23 |
else:
|
24 |
print("Streamlit app is already running, only streaming bot activity.")
|
25 |
+
while True:
|
26 |
+
syncMessages()
|
27 |
+
time.sleep(0.1)
|
28 |
+
|
29 |
|
30 |
try:
|
31 |
os.mkdir("data")
|