Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -90,13 +90,13 @@ def predict(
|
|
90 |
|
91 |
response1 = client.chat.completions.create(
|
92 |
model=model1,
|
93 |
-
|
94 |
temperature=temperature,
|
95 |
max_tokens=1000).choices[0].message.content
|
96 |
|
97 |
response2 = client.chat.completions.create(
|
98 |
model=model2,
|
99 |
-
|
100 |
temperature=temperature,
|
101 |
max_tokens=1000).choices[0].message.content
|
102 |
|
|
|
90 |
|
91 |
response1 = client.chat.completions.create(
|
92 |
model=model1,
|
93 |
+
messages=[{"role": "user", "content": prompt},],
|
94 |
temperature=temperature,
|
95 |
max_tokens=1000).choices[0].message.content
|
96 |
|
97 |
response2 = client.chat.completions.create(
|
98 |
model=model2,
|
99 |
+
messages=[{"role": "user", "content": prompt},],
|
100 |
temperature=temperature,
|
101 |
max_tokens=1000).choices[0].message.content
|
102 |
|