bstraehle commited on
Commit
9d3e5aa
1 Parent(s): d2e0347

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -3,6 +3,7 @@ import json, openai, os, time
3
 
4
  from agents import create_triage_agent, create_sales_agent, create_issues_repairs_agent
5
  from openai import OpenAI
 
6
 
7
  _client = OpenAI(api_key=os.environ.get("OPENAI_API_KEY"))
8
 
@@ -86,9 +87,6 @@ def extract_content_values(data):
86
  content_values.append(content.text.value)
87
  return content_values
88
 
89
- def show_json(str, obj):
90
- print(f"=> {str}\n{json.loads(obj.model_dump_json())}")
91
-
92
  def chat(message, history, openai_api_key):
93
  global _client, _assistant, _thread
94
 
 
3
 
4
  from agents import create_triage_agent, create_sales_agent, create_issues_repairs_agent
5
  from openai import OpenAI
6
+ from utils import show_json
7
 
8
  _client = OpenAI(api_key=os.environ.get("OPENAI_API_KEY"))
9
 
 
87
  content_values.append(content.text.value)
88
  return content_values
89
 
 
 
 
90
  def chat(message, history, openai_api_key):
91
  global _client, _assistant, _thread
92