Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -92,8 +92,11 @@ def parse_query(nl_query):
|
|
92 |
"""
|
93 |
|
94 |
try:
|
95 |
-
|
96 |
-
|
|
|
|
|
|
|
97 |
prompt=prompt,
|
98 |
temperature=0, # Set to 0 for deterministic output
|
99 |
max_tokens=150,
|
|
|
92 |
"""
|
93 |
|
94 |
try:
|
95 |
+
|
96 |
+
client = OpenAI(api_key=os.getenv('OPENAI_API_KEY'))
|
97 |
+
|
98 |
+
response = client.completions.create(
|
99 |
+
model="gpt-3.5-turbo-instruct", # You can choose a different engine if preferred
|
100 |
prompt=prompt,
|
101 |
temperature=0, # Set to 0 for deterministic output
|
102 |
max_tokens=150,
|