Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -4353,13 +4353,13 @@ def _render_rag_publisher_safe():
|
|
| 4353 |
|
| 4354 |
# Prefer a function you defined:
|
| 4355 |
if "render_rag_publisher" in globals():
|
| 4356 |
-
return
|
| 4357 |
|
| 4358 |
# Or a module-style component:
|
| 4359 |
if "rag_publisher" in globals() and hasattr(rag_publisher, "render"):
|
| 4360 |
return rag_publisher.render()
|
| 4361 |
|
| 4362 |
-
st.info("RAG Publisher module not loaded. Define `
|
| 4363 |
except Exception as e:
|
| 4364 |
st.error(f"RAG Publisher failed: {e}")
|
| 4365 |
try:
|
|
|
|
| 4353 |
|
| 4354 |
# Prefer a function you defined:
|
| 4355 |
if "render_rag_publisher" in globals():
|
| 4356 |
+
return _render_rag_publisher_safe()
|
| 4357 |
|
| 4358 |
# Or a module-style component:
|
| 4359 |
if "rag_publisher" in globals() and hasattr(rag_publisher, "render"):
|
| 4360 |
return rag_publisher.render()
|
| 4361 |
|
| 4362 |
+
st.info("RAG Publisher module not loaded. Define `_render_rag_publisher_safe()` or `rag_publisher.render()`.")
|
| 4363 |
except Exception as e:
|
| 4364 |
st.error(f"RAG Publisher failed: {e}")
|
| 4365 |
try:
|