SuhasGholkar commited on
Commit
a512d2d
·
verified ·
1 Parent(s): e82c0b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 render_rag_publisher()
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()` or `rag_publisher.render()`.")
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: