Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:
|