Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,12 @@
|
|
1 |
-
#
|
2 |
-
#
|
3 |
-
#
|
4 |
-
#
|
5 |
-
#
|
6 |
-
|
|
|
|
|
|
|
7 |
|
8 |
import gradio as gr
|
9 |
import datetime, openai, os, time
|
@@ -123,8 +126,8 @@ def chat(message, history):
|
|
123 |
if assistant == None:
|
124 |
assistant = load_assistant(client)
|
125 |
|
126 |
-
if thread == None:
|
127 |
-
|
128 |
|
129 |
create_message(client, thread, message)
|
130 |
|
|
|
1 |
+
# Matlplotlib chart
|
2 |
+
# New thread
|
3 |
+
# Multimodal input
|
4 |
+
# File search
|
5 |
+
# Function: Tavily API
|
6 |
+
|
7 |
+
# https://platform.openai.com/playground/assistants
|
8 |
+
# https://platform.openai.com/docs/api-reference/assistants/createAssistant
|
9 |
+
# https://cookbook.openai.com/examples/assistants_api_overview_python
|
10 |
|
11 |
import gradio as gr
|
12 |
import datetime, openai, os, time
|
|
|
126 |
if assistant == None:
|
127 |
assistant = load_assistant(client)
|
128 |
|
129 |
+
#if thread == None:
|
130 |
+
thread = create_thread(client)
|
131 |
|
132 |
create_message(client, thread, message)
|
133 |
|