Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,9 @@ import os, time
|
|
3 |
from openai import OpenAI
|
4 |
|
5 |
def show_json(obj):
|
6 |
-
|
|
|
|
|
7 |
|
8 |
def chat(message, history):
|
9 |
client = OpenAI(api_key=os.environ.get("OPENAI_API_KEY"))
|
|
|
3 |
from openai import OpenAI
|
4 |
|
5 |
def show_json(obj):
|
6 |
+
print("###")
|
7 |
+
print(json.loads(obj.model_dump_json()))
|
8 |
+
print("###")
|
9 |
|
10 |
def chat(message, history):
|
11 |
client = OpenAI(api_key=os.environ.get("OPENAI_API_KEY"))
|