Spaces:
Runtime error
Runtime error
jitendra.kasaudhan
commited on
Commit
•
207907e
1
Parent(s):
630b42e
Add product url instead of image
Browse files
app.py
CHANGED
@@ -123,11 +123,11 @@ async def main(message: str):
|
|
123 |
# source_elements.append(cl.Text(name=values["name"], content=text_for_source, display="inline"))
|
124 |
|
125 |
source_elements = [
|
126 |
-
cl.Image(url=values["image"], name="image1", display="inline"),
|
127 |
-
cl.Text(content=text_for_source, name=values["name"], display="
|
128 |
]
|
129 |
|
130 |
-
not_found_indicators = ["not mentioned", "no mention", "not specified"]
|
131 |
if any([text in answer.lower() for text in not_found_indicators]):
|
132 |
# If product not found, do not show any product urls
|
133 |
source_elements = []
|
|
|
123 |
# source_elements.append(cl.Text(name=values["name"], content=text_for_source, display="inline"))
|
124 |
|
125 |
source_elements = [
|
126 |
+
# cl.Image(url=values["image"], name="image1", display="inline"),
|
127 |
+
cl.Text(content=text_for_source, name=values["name"], display="inline"),
|
128 |
]
|
129 |
|
130 |
+
not_found_indicators = ["not mentioned", "no mention", "not specified", "no information"]
|
131 |
if any([text in answer.lower() for text in not_found_indicators]):
|
132 |
# If product not found, do not show any product urls
|
133 |
source_elements = []
|