Update app.py
Browse files
app.py
CHANGED
@@ -90,15 +90,15 @@ Then, give 3 detailed, actionable suggestions the seller can implement to improv
|
|
90 |
"""
|
91 |
|
92 |
# call Azure OpenAI
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
|
103 |
# display GPT’s reply
|
104 |
gpt_reply = response.choices[0].message.content
|
|
|
90 |
"""
|
91 |
|
92 |
# call Azure OpenAI
|
93 |
+
response = openai_client.chat.completions.create(
|
94 |
+
model="gpt-35-turbo", # ← use your deployed model name here
|
95 |
+
messages=[
|
96 |
+
{"role": "system", "content": "You are a product-feedback analyst."},
|
97 |
+
{"role": "user", "content": prompt}
|
98 |
+
],
|
99 |
+
temperature=0.7,
|
100 |
+
max_tokens=400
|
101 |
+
)
|
102 |
|
103 |
# display GPT’s reply
|
104 |
gpt_reply = response.choices[0].message.content
|