Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -152,12 +152,11 @@ def function(Textbox,Textbox2, Textbox3):
|
|
152 |
)
|
153 |
try:
|
154 |
# sleep(0.8)
|
155 |
-
headers = {
|
156 |
-
|
157 |
-
}
|
158 |
-
response = requests.post(target2,
|
159 |
-
"messages": messages
|
160 |
-
"model":"gpt-3.5-turbo"
|
161 |
}).json()
|
162 |
# reply = chat.choices[0].message.content
|
163 |
reply = response['choices'][0]['message']['content']
|
|
|
152 |
)
|
153 |
try:
|
154 |
# sleep(0.8)
|
155 |
+
# headers = {
|
156 |
+
# "Authorization": f"Bearer {auth_key}"
|
157 |
+
# }
|
158 |
+
response = requests.post(target2, json={
|
159 |
+
"messages": messages
|
|
|
160 |
}).json()
|
161 |
# reply = chat.choices[0].message.content
|
162 |
reply = response['choices'][0]['message']['content']
|