Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,9 @@ import openai, os, time
|
|
3 |
|
4 |
client = openai.OpenAI(api_key = os.getenv("OPENAI_API_KEY"))
|
5 |
|
|
|
|
|
|
|
6 |
def chat(message, history):
|
7 |
for i in range(len(message)):
|
8 |
time.sleep(0.5)
|
|
|
3 |
|
4 |
client = openai.OpenAI(api_key = os.getenv("OPENAI_API_KEY"))
|
5 |
|
6 |
+
def show_json(obj):
|
7 |
+
display(json.loads(obj.model_dump_json()))
|
8 |
+
|
9 |
def chat(message, history):
|
10 |
for i in range(len(message)):
|
11 |
time.sleep(0.5)
|