Redmind commited on
Commit
0fe444f
·
verified ·
1 Parent(s): a399790

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- stop_event = concurrent.futures.thread.Event()
 
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")