Spaces:
Sleeping
Sleeping
if thread_id is None or thread_id == "":
Browse files
app.py
CHANGED
@@ -1007,7 +1007,7 @@ def chat_with_youtube_transcript(youtube_id, thread_id, user_message, chat_histo
|
|
1007 |
assistant_id = "asst_kmvZLNkDUYaNkMNtZEAYxyPq"
|
1008 |
client = OPEN_AI_CLIENT
|
1009 |
# 创建线程
|
1010 |
-
if thread_id is None:
|
1011 |
thread = client.beta.threads.create()
|
1012 |
# 向线程添加初始系统消息,指定使用的 YouTube 视频ID
|
1013 |
client.beta.threads.messages.create(
|
|
|
1007 |
assistant_id = "asst_kmvZLNkDUYaNkMNtZEAYxyPq"
|
1008 |
client = OPEN_AI_CLIENT
|
1009 |
# 创建线程
|
1010 |
+
if thread_id is None or thread_id == "":
|
1011 |
thread = client.beta.threads.create()
|
1012 |
# 向线程添加初始系统消息,指定使用的 YouTube 视频ID
|
1013 |
client.beta.threads.messages.create(
|