bstraehle commited on
Commit
212331b
1 Parent(s): 88ad70a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -28,6 +28,8 @@ from assistants import (
28
  extract_content_values,
29
  )
30
 
 
 
31
  def chat(message, history, openai_api_key):
32
  if not openai_api_key:
33
  raise gr.Error("OpenAI API Key is required (see additional inputs below).")
 
28
  extract_content_values,
29
  )
30
 
31
+ lock = threading.Lock()
32
+
33
  def chat(message, history, openai_api_key):
34
  if not openai_api_key:
35
  raise gr.Error("OpenAI API Key is required (see additional inputs below).")