Spaces:
Running
Running
Update app.py
Browse files
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).")
|