Update app.py
Browse files
app.py
CHANGED
@@ -137,9 +137,9 @@ def predict(user_input,company):
|
|
137 |
)
|
138 |
|
139 |
prediction = response.choices[0].message.content.strip()
|
|
|
140 |
except Exception as e:
|
141 |
-
prediction =
|
142 |
-
#prediction = f'Sorry, I encountered the following error: \n {e}'
|
143 |
|
144 |
print(prediction)
|
145 |
|
|
|
137 |
)
|
138 |
|
139 |
prediction = response.choices[0].message.content.strip()
|
140 |
+
prediction = relevant_document_chunks[0].metadata['source'] + '\n' + filter
|
141 |
except Exception as e:
|
142 |
+
prediction = f'Sorry, I encountered the following error: \n {e}'
|
|
|
143 |
|
144 |
print(prediction)
|
145 |
|