Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -199,7 +199,9 @@ class SmartShoppingAssistant:
|
|
| 199 |
try:
|
| 200 |
response = model.generate_content([prompt,text])
|
| 201 |
return response.text
|
| 202 |
-
|
|
|
|
|
|
|
| 203 |
|
| 204 |
|
| 205 |
except Exception as e:
|
|
|
|
| 199 |
try:
|
| 200 |
response = model.generate_content([prompt,text])
|
| 201 |
return response.text
|
| 202 |
+
|
| 203 |
+
except Exception as e:
|
| 204 |
+
return f"Error processing text from pdf: {str(e)}"
|
| 205 |
|
| 206 |
|
| 207 |
except Exception as e:
|