Spaces:
Sleeping
Sleeping
jh000107
commited on
Commit
·
4119e90
1
Parent(s):
5cf1f63
update
Browse files
app.py
CHANGED
@@ -198,16 +198,16 @@ def get_completion(conversation, model="gpt-4-1106-preview"):
|
|
198 |
|
199 |
openai.api_key = openai_api_key
|
200 |
|
201 |
-
client = OpenAI()
|
202 |
|
203 |
-
messages = [{"role": "user", "content": prompt}]
|
204 |
-
response = client.chat.completions.create(
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
)
|
209 |
|
210 |
-
analysis = response.choices[0].message.content
|
211 |
|
212 |
def extract_conv_with_labels(analysis):
|
213 |
analysis = analysis.replace("\n", " ")
|
|
|
198 |
|
199 |
openai.api_key = openai_api_key
|
200 |
|
201 |
+
# client = OpenAI()
|
202 |
|
203 |
+
# messages = [{"role": "user", "content": prompt}]
|
204 |
+
# response = client.chat.completions.create(
|
205 |
+
# model=model,
|
206 |
+
# messages=messages,
|
207 |
+
# temperature=0, # this is the degree of randomness of the model's output
|
208 |
+
# )
|
209 |
|
210 |
+
# analysis = response.choices[0].message.content
|
211 |
|
212 |
def extract_conv_with_labels(analysis):
|
213 |
analysis = analysis.replace("\n", " ")
|