Spaces:
Running
Running
chatbot_open_ai_streaming_select_btn.click(
Browse files
app.py
CHANGED
@@ -2398,7 +2398,10 @@ def update_state(content_subject, content_grade, trascript, key_moments, questio
|
|
2398 |
formatted_simple_transcript = create_formatted_simple_transcript(trascript_json)
|
2399 |
trascript_state = formatted_simple_transcript
|
2400 |
key_moments_state = key_moments
|
2401 |
-
|
|
|
|
|
|
|
2402 |
ai_chatbot_question_1 = question_1
|
2403 |
ai_chatbot_question_2 = question_2
|
2404 |
ai_chatbot_question_3 = question_3
|
@@ -2798,6 +2801,10 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue=gr.themes.colors.orange, seconda
|
|
2798 |
chatbot_select,
|
2799 |
inputs=[chatbot_open_ai_streaming_name],
|
2800 |
outputs=[chatbot_select_accordion, chatbot_open_ai, chatbot_open_ai_streaming, chatbot_jutor]
|
|
|
|
|
|
|
|
|
2801 |
)
|
2802 |
chatbot_jutor_select_btn.click(
|
2803 |
chatbot_select,
|
|
|
2398 |
formatted_simple_transcript = create_formatted_simple_transcript(trascript_json)
|
2399 |
trascript_state = formatted_simple_transcript
|
2400 |
key_moments_state = key_moments
|
2401 |
+
|
2402 |
+
# streaming_chat_thread_id_state = create_thread_id()
|
2403 |
+
streaming_chat_thread_id_state = ""
|
2404 |
+
|
2405 |
ai_chatbot_question_1 = question_1
|
2406 |
ai_chatbot_question_2 = question_2
|
2407 |
ai_chatbot_question_3 = question_3
|
|
|
2801 |
chatbot_select,
|
2802 |
inputs=[chatbot_open_ai_streaming_name],
|
2803 |
outputs=[chatbot_select_accordion, chatbot_open_ai, chatbot_open_ai_streaming, chatbot_jutor]
|
2804 |
+
).then(
|
2805 |
+
create_thread_id,
|
2806 |
+
inputs=[],
|
2807 |
+
outputs=[streaming_chat_thread_id_state]
|
2808 |
)
|
2809 |
chatbot_jutor_select_btn.click(
|
2810 |
chatbot_select,
|