bstraehle commited on
Commit
5eae7c2
1 Parent(s): d92a321

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -8
app.py CHANGED
@@ -1,9 +1,12 @@
1
- # TODO:
2
- # - Matlplotlib chart
3
- # - New thread
4
- # - Multimodal input
5
- # - File search
6
- # - Function: Tavily API
 
 
 
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
- thread = create_thread(client)
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