Dy commited on
Commit
62f778b
1 Parent(s): 8780958

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -12,6 +12,7 @@ import re
12
  import json
13
  import tempfile
14
  import collections
 
15
 
16
  OPENAI_API_KEY = os.environ['OPENAI_API_KEY']
17
 
@@ -133,6 +134,7 @@ def get_taxanomy_from_url(url):
133
  Do not output "The taxonomy extracted from the given python list can be represented as follows:"
134
  Do not provide extra information. Directly output the python dictionary only.
135
  Do not insert any string before or after the python dictionary.
 
136
  Output python dictionary only.
137
  '''
138
  encoding = tiktoken.encoding_for_model("gpt-4")
@@ -199,7 +201,8 @@ def expand_taxanomy(json_dict, num_layers, num_items, category_type):
199
  Go deeper. Think step by step.
200
  Find all subcategories and output it as a json object.
201
 
202
- The output should follow a python dictionary..
 
203
  Do not declare a new variable, output the python dictionary json object only.
204
  Do not provide extra information. Directly output the python dictionary only.
205
  '''
 
12
  import json
13
  import tempfile
14
  import collections
15
+ import graphviz
16
 
17
  OPENAI_API_KEY = os.environ['OPENAI_API_KEY']
18
 
 
134
  Do not output "The taxonomy extracted from the given python list can be represented as follows:"
135
  Do not provide extra information. Directly output the python dictionary only.
136
  Do not insert any string before or after the python dictionary.
137
+ Do not say "Here is"
138
  Output python dictionary only.
139
  '''
140
  encoding = tiktoken.encoding_for_model("gpt-4")
 
201
  Go deeper. Think step by step.
202
  Find all subcategories and output it as a json object.
203
 
204
+ The output should follow a python dictionary.
205
+ Do not say "Here is"
206
  Do not declare a new variable, output the python dictionary json object only.
207
  Do not provide extra information. Directly output the python dictionary only.
208
  '''