Spaces:
Sleeping
Sleeping
XQ commited on
Commit ·
7b3b273
1
Parent(s): 97349d2
Update logger and UI
Browse files- src/api/routes.py +1 -0
- src/ui/app.py +0 -2
src/api/routes.py
CHANGED
|
@@ -299,6 +299,7 @@ async def query_stream(request: QueryRequest) -> StreamingResponse:
|
|
| 299 |
):
|
| 300 |
event_queue.put(event)
|
| 301 |
except Exception as exc:
|
|
|
|
| 302 |
exc_str = str(exc)
|
| 303 |
if _is_rate_limit_error(exc):
|
| 304 |
event_queue.put({"step": "error", "code": 429, "message": exc_str})
|
|
|
|
| 299 |
):
|
| 300 |
event_queue.put(event)
|
| 301 |
except Exception as exc:
|
| 302 |
+
logger.error("Stream query failed: %s", exc, exc_info=True)
|
| 303 |
exc_str = str(exc)
|
| 304 |
if _is_rate_limit_error(exc):
|
| 305 |
event_queue.put({"step": "error", "code": 429, "message": exc_str})
|
src/ui/app.py
CHANGED
|
@@ -220,8 +220,6 @@ st.markdown('<meta name="robots" content="noindex, nofollow">', unsafe_allow_htm
|
|
| 220 |
st.html(
|
| 221 |
'<script async src="https://cloud.umami.is/script.js"'
|
| 222 |
' data-website-id="cf6c908e-1236-4406-8c02-88aa7c9a0db2"></script>',
|
| 223 |
-
height=0,
|
| 224 |
-
width=0,
|
| 225 |
)
|
| 226 |
|
| 227 |
# ---------------------------------------------------------------------------
|
|
|
|
| 220 |
st.html(
|
| 221 |
'<script async src="https://cloud.umami.is/script.js"'
|
| 222 |
' data-website-id="cf6c908e-1236-4406-8c02-88aa7c9a0db2"></script>',
|
|
|
|
|
|
|
| 223 |
)
|
| 224 |
|
| 225 |
# ---------------------------------------------------------------------------
|