Upload app.py
Browse files
app.py
CHANGED
@@ -120,9 +120,9 @@ def llm_query(user_input,company):
|
|
120 |
|
121 |
except Exception as e:
|
122 |
|
123 |
-
|
124 |
|
125 |
-
print(
|
126 |
|
127 |
# While the prediction is made, log both the inputs and outputs to a local log file
|
128 |
# While writing to the log file, ensure that the commit scheduler is locked to avoid parallel
|
|
|
120 |
|
121 |
except Exception as e:
|
122 |
|
123 |
+
llm_response = f'Sorry, I encountered the following error: \n {e}'
|
124 |
|
125 |
+
print(llm_response)
|
126 |
|
127 |
# While the prediction is made, log both the inputs and outputs to a local log file
|
128 |
# While writing to the log file, ensure that the commit scheduler is locked to avoid parallel
|