Upload app.py
Browse files
app.py
CHANGED
@@ -117,7 +117,7 @@ def predict(user_input,company):
|
|
117 |
prediction = response.choices[0].message.content.strip()
|
118 |
except Exception as e:
|
119 |
|
120 |
-
|
121 |
|
122 |
|
123 |
|
|
|
117 |
prediction = response.choices[0].message.content.strip()
|
118 |
except Exception as e:
|
119 |
|
120 |
+
prediction = f'Sorry, I encountered the following error: \n {e}'
|
121 |
|
122 |
|
123 |
|