Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,8 @@ import concurrent.futures
|
|
57 |
# Define global variables for managing the thread and future
|
58 |
executor = concurrent.futures.ThreadPoolExecutor(max_workers=1)
|
59 |
future = None
|
60 |
-
|
|
|
61 |
|
62 |
# LangFuse API keys and host settings
|
63 |
os.environ["LANGFUSE_PUBLIC_KEY"] = os.getenv("LANGFUSE_PUBLIC_KEY")
|
|
|
57 |
# Define global variables for managing the thread and future
|
58 |
executor = concurrent.futures.ThreadPoolExecutor(max_workers=1)
|
59 |
future = None
|
60 |
+
import threading
|
61 |
+
stop_event = threading.Event()
|
62 |
|
63 |
# LangFuse API keys and host settings
|
64 |
os.environ["LANGFUSE_PUBLIC_KEY"] = os.getenv("LANGFUSE_PUBLIC_KEY")
|