Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -240,8 +240,10 @@ def get_ASN_data(question):
|
|
| 240 |
|
| 241 |
except requests.exceptions.HTTPError as http_err:
|
| 242 |
print(f"HTTP error occurred: {http_err}")
|
|
|
|
| 243 |
except Exception as err:
|
| 244 |
print(f"An error occurred: {err}")
|
|
|
|
| 245 |
|
| 246 |
def load_and_split_pdf(pdf_path):
|
| 247 |
reader = PdfReader(pdf_path)
|
|
|
|
| 240 |
|
| 241 |
except requests.exceptions.HTTPError as http_err:
|
| 242 |
print(f"HTTP error occurred: {http_err}")
|
| 243 |
+
return "Sorry, we encountered an error while processing your request. Please try after some time."
|
| 244 |
except Exception as err:
|
| 245 |
print(f"An error occurred: {err}")
|
| 246 |
+
return "Sorry, we encountered an error while processing your request. Please try after some time."
|
| 247 |
|
| 248 |
def load_and_split_pdf(pdf_path):
|
| 249 |
reader = PdfReader(pdf_path)
|