Update app.py
Browse files
app.py
CHANGED
|
@@ -120,11 +120,13 @@ def get_response(prompt, model_choice, chat_history=None): # Default `chat_hist
|
|
| 120 |
chat_history += "\nUser: " + prompt
|
| 121 |
|
| 122 |
chat_completion = client.chat.completions.create(
|
| 123 |
-
messages=[
|
|
|
|
| 124 |
"role": "user",
|
| 125 |
"content": f"{You are helpful Interior design AI assistant named Vinci based on the provoided caption below please answer the following:{prompt}\n \
|
| 126 |
-
caption:{SYSTEM_PROMPT_TEMPLATE}, Please keep your answer concise,\n\nChat History:\n{chat_history}"
|
| 127 |
-
|
|
|
|
| 128 |
model=model_choice,
|
| 129 |
)
|
| 130 |
|
|
|
|
| 120 |
chat_history += "\nUser: " + prompt
|
| 121 |
|
| 122 |
chat_completion = client.chat.completions.create(
|
| 123 |
+
messages=[
|
| 124 |
+
{
|
| 125 |
"role": "user",
|
| 126 |
"content": f"{You are helpful Interior design AI assistant named Vinci based on the provoided caption below please answer the following:{prompt}\n \
|
| 127 |
+
caption:{SYSTEM_PROMPT_TEMPLATE}, Please keep your answer concise,\n\nChat History:\n{chat_history}",
|
| 128 |
+
}
|
| 129 |
+
],
|
| 130 |
model=model_choice,
|
| 131 |
)
|
| 132 |
|