Koomemartin commited on
Commit
d308e6d
·
verified ·
1 Parent(s): 8f012b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -57,6 +57,9 @@ if st.button("Submit"):
57
  stream=True,
58
  )
59
  st.write('Passed model')
 
 
 
60
  response = ""
61
  try:
62
  for chunk in chat_streaming:
 
57
  stream=True,
58
  )
59
  st.write('Passed model')
60
+
61
+ except Exception as e:
62
+ st.error(f"Failed to process query: {e}")
63
  response = ""
64
  try:
65
  for chunk in chat_streaming: