Update app.py
Browse files
app.py
CHANGED
|
@@ -99,6 +99,10 @@ def query_model(question):
|
|
| 99 |
return response
|
| 100 |
|
| 101 |
def get_pinterest_link(question):
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
"""
|
| 103 |
Check if the question contains a keyword and return the corresponding Pinterest link.
|
| 104 |
"""
|
|
@@ -113,10 +117,23 @@ def get_pinterest_link(question):
|
|
| 113 |
"farmhouse": "Here is a link to the pinterest board to help you get started and find inspiration for your style! Just copy this link to get to the board: https://pin.it/3QHeclkAk",
|
| 114 |
"industrial": "Here is a link to the pinterest board to help you get started and find inspiration for your style! Just copy this link to get to the board: https://pin.it/58tp64jEx",
|
| 115 |
"mediterranean": "Here is a link to the pinterest board to help you get started and find inspiration for your style! Just copy this link to get to the board: https://pin.it/6ikPHFnOo",
|
| 116 |
-
"minimalistic": "Here is a link to the pinterest board to help you get started and find inspiration for your style! Just copy this link to get to the board: https://pin.it/
|
| 117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
}
|
| 119 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
# Define the welcome message and specific topics the chatbot can provide information about
|
| 121 |
welcome_message = """
|
| 122 |
# 🛋️ Welcome to Designare!
|
|
|
|
| 99 |
return response
|
| 100 |
|
| 101 |
def get_pinterest_link(question):
|
| 102 |
+
"""
|
| 103 |
+
Check if the question contains a keyword and return the corresponding Pinterest link.
|
| 104 |
+
"""
|
| 105 |
+
def get_pinterest_link(question):
|
| 106 |
"""
|
| 107 |
Check if the question contains a keyword and return the corresponding Pinterest link.
|
| 108 |
"""
|
|
|
|
| 117 |
"farmhouse": "Here is a link to the pinterest board to help you get started and find inspiration for your style! Just copy this link to get to the board: https://pin.it/3QHeclkAk",
|
| 118 |
"industrial": "Here is a link to the pinterest board to help you get started and find inspiration for your style! Just copy this link to get to the board: https://pin.it/58tp64jEx",
|
| 119 |
"mediterranean": "Here is a link to the pinterest board to help you get started and find inspiration for your style! Just copy this link to get to the board: https://pin.it/6ikPHFnOo",
|
| 120 |
+
"minimalistic": "Here is a link to the pinterest board to help you get started and find inspiration for your style! Just copy this link to get to the board: https://pin.it/3cSZwa8Nw",
|
| 121 |
+
"mid-century": "Here is a link to the pinterest board to help you get started and find inspiration for your style! Just copy this link to get to the board: https://pin.it/30b5Mz1xa",
|
| 122 |
+
"rustic": "Here is a link to the pinterest board to help you get started and find inspiration for your style! Just copy this link to get to the board: https://pin.it/5eyZ4xSEP",
|
| 123 |
+
"scandinavian": "Here is a link to the pinterest board to help you get started and find inspiration for your style! Just copy this link to get to the board: https://pin.it/6Dw4px7XZ",
|
| 124 |
+
"shabby-chic": "Here is a link to the pinterest board to help you get started and find inspiration for your style! Just copy this link to get to the board: https://pin.it/4AZ0MpD0q",
|
| 125 |
+
"southwestern": "Here is a link to the pinterest board to help you get started and find inspiration for your style! Just copy this link to get to the board: https://pin.it/7nmK5dcae",
|
| 126 |
+
"transitional": "Here is a link to the pinterest board to help you get started and find inspiration for your style! Just copy this link to get to the board: https://pin.it/7hy7YMVWv",
|
| 127 |
+
"tropical": "Here is a link to the pinterest board to help you get started and find inspiration for your style! Just copy this link to get to the board: https://pin.it/41HtSEew0",
|
| 128 |
+
"victorian": "Here is a link to the pinterest board to help you get started and find inspiration for your style! Just copy this link to get to the board: https://pin.it/3UrJ3mDXm",
|
| 129 |
}
|
| 130 |
|
| 131 |
+
for keyword, link in keyword_links.items():
|
| 132 |
+
if keyword in question.lower():
|
| 133 |
+
return link
|
| 134 |
+
|
| 135 |
+
return None
|
| 136 |
+
|
| 137 |
# Define the welcome message and specific topics the chatbot can provide information about
|
| 138 |
welcome_message = """
|
| 139 |
# 🛋️ Welcome to Designare!
|