Jan Biermeyer commited on
Commit
0241ab6
·
1 Parent(s): 429dc7a
Files changed (1) hide show
  1. app.py +11 -3
app.py CHANGED
@@ -750,7 +750,15 @@ def main():
750
 
751
  if not enhanced_model_online:
752
  st.error("⚠️ Enhanced model is not available. Please check model files.")
753
- st.code("pipenv run python -m src.rag.model_loader")
 
 
 
 
 
 
 
 
754
 
755
  # Model info
756
  try:
@@ -767,7 +775,7 @@ def main():
767
  else:
768
  st.markdown("""
769
  <div class="metric-card">
770
- <strong>Model:</strong> supra-nexus-8b-enhanced<br>
771
  <strong>Voice:</strong> SUPRA Literary AI<br>
772
  <strong>Status:</strong> Loading...
773
  </div>
@@ -775,7 +783,7 @@ def main():
775
  except:
776
  st.markdown("""
777
  <div class="metric-card">
778
- <strong>Model:</strong> supra-nexus-8b-enhanced<br>
779
  <strong>Voice:</strong> SUPRA Literary AI<br>
780
  <strong>Status:</strong> Loading...
781
  </div>
 
750
 
751
  if not enhanced_model_online:
752
  st.error("⚠️ Enhanced model is not available. Please check model files.")
753
+ st.code("python -m rag.model_loader")
754
+ # Show error details if available
755
+ try:
756
+ model_info = get_model_info()
757
+ if "error" in model_info:
758
+ with st.expander("Error Details"):
759
+ st.code(model_info.get("error", "Unknown error"))
760
+ except:
761
+ pass
762
 
763
  # Model info
764
  try:
 
775
  else:
776
  st.markdown("""
777
  <div class="metric-card">
778
+ <strong>Model:</strong> supra-nexus-o2<br>
779
  <strong>Voice:</strong> SUPRA Literary AI<br>
780
  <strong>Status:</strong> Loading...
781
  </div>
 
783
  except:
784
  st.markdown("""
785
  <div class="metric-card">
786
+ <strong>Model:</strong> supra-nexus-o2<br>
787
  <strong>Voice:</strong> SUPRA Literary AI<br>
788
  <strong>Status:</strong> Loading...
789
  </div>