Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1018,7 +1018,7 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
|
|
1018 |
},
|
1019 |
}
|
1020 |
]
|
1021 |
-
|
1022 |
completion = openai.ChatCompletion.create(
|
1023 |
model="gpt-3.5-turbo",
|
1024 |
messages=messages,
|
@@ -1073,13 +1073,15 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
|
|
1073 |
name=arguments_dict["name"],
|
1074 |
number=arguments_dict["number"]
|
1075 |
)
|
|
|
|
|
1076 |
print("FUNCTION_RESPONSE:", function_response)
|
1077 |
print("ARGUMENTS VALUES:", arguments_dict["name"], arguments_dict["number"])
|
1078 |
messages.append(comp)
|
1079 |
messages.append({
|
1080 |
"role": "function",
|
1081 |
"name": function_name,
|
1082 |
-
"content":
|
1083 |
})
|
1084 |
second_response = openai.ChatCompletion.create(
|
1085 |
model="gpt-3.5-turbo",
|
|
|
1018 |
},
|
1019 |
}
|
1020 |
]
|
1021 |
+
|
1022 |
completion = openai.ChatCompletion.create(
|
1023 |
model="gpt-3.5-turbo",
|
1024 |
messages=messages,
|
|
|
1073 |
name=arguments_dict["name"],
|
1074 |
number=arguments_dict["number"]
|
1075 |
)
|
1076 |
+
content_to_include = function_response[1]
|
1077 |
+
|
1078 |
print("FUNCTION_RESPONSE:", function_response)
|
1079 |
print("ARGUMENTS VALUES:", arguments_dict["name"], arguments_dict["number"])
|
1080 |
messages.append(comp)
|
1081 |
messages.append({
|
1082 |
"role": "function",
|
1083 |
"name": function_name,
|
1084 |
+
"content": content_to_include
|
1085 |
})
|
1086 |
second_response = openai.ChatCompletion.create(
|
1087 |
model="gpt-3.5-turbo",
|