mijgis commited on
Commit
d953a8e
·
verified ·
1 Parent(s): 46b9706

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = relevant_document_chunks[0]
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