Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -174,7 +174,7 @@ class SmartShoppingAssistant:
|
|
| 174 |
prompt = """
|
| 175 |
Analyze this image and extract products and their quantities.
|
| 176 |
If quantities aren't specified, assume 1.
|
| 177 |
-
List each item with its quantity
|
| 178 |
"""
|
| 179 |
try:
|
| 180 |
response = model.generate_content([prompt, image])
|
|
@@ -249,6 +249,7 @@ def generate_receipt():
|
|
| 249 |
def main():
|
| 250 |
st.set_page_config(page_title="Smart Shopping Assistant", layout="wide")
|
| 251 |
st.title("🛒 Smart Shopping Assistant")
|
|
|
|
| 252 |
|
| 253 |
@st.cache_data
|
| 254 |
def load_product_data():
|
|
|
|
| 174 |
prompt = """
|
| 175 |
Analyze this image and extract products and their quantities.
|
| 176 |
If quantities aren't specified, assume 1.
|
| 177 |
+
List each item starting with its quantity and then name of item and nothing else
|
| 178 |
"""
|
| 179 |
try:
|
| 180 |
response = model.generate_content([prompt, image])
|
|
|
|
| 249 |
def main():
|
| 250 |
st.set_page_config(page_title="Smart Shopping Assistant", layout="wide")
|
| 251 |
st.title("🛒 Smart Shopping Assistant")
|
| 252 |
+
st.write("Powered by Brave Retail Insights")
|
| 253 |
|
| 254 |
@st.cache_data
|
| 255 |
def load_product_data():
|