GuglielmoTor commited on
Commit
f9e2512
·
verified ·
1 Parent(s): 07c894c

Update ui/ui_generators.py

Browse files
Files changed (1) hide show
  1. ui/ui_generators.py +12 -7
ui/ui_generators.py CHANGED
@@ -720,7 +720,7 @@ def create_enhanced_report_tab(agentic_modules_loaded_status: bool):
720
  }
721
 
722
  .status-badge::before {
723
- content: "";
724
  margin-right: 8px;
725
  }
726
 
@@ -764,7 +764,9 @@ def create_enhanced_report_tab(agentic_modules_loaded_status: bool):
764
  min-height: 400px;
765
  }
766
 
767
- .report-content .markdown {
 
 
768
  padding: 40px;
769
  font-size: 1.1rem;
770
  line-height: 1.8;
@@ -887,7 +889,7 @@ def create_enhanced_report_tab(agentic_modules_loaded_status: bool):
887
  padding: 24px;
888
  }
889
 
890
- .report-content .markdown {
891
  padding: 24px;
892
  }
893
 
@@ -905,7 +907,8 @@ def create_enhanced_report_tab(agentic_modules_loaded_status: bool):
905
  }
906
 
907
  /* Gradio Component Overrides */
908
- .gradio-container .report-content .markdown {
 
909
  background: transparent !important;
910
  border: none !important;
911
  }
@@ -932,10 +935,11 @@ def create_enhanced_report_tab(agentic_modules_loaded_status: bool):
932
  color: #6b6b6b;
933
  }
934
 
 
935
  .loading-indicator::before {
936
  content: "⏳";
937
  margin-right: 12px;
938
- animation: spin 2s linear infinite;
939
  }
940
 
941
  @keyframes spin {
@@ -986,7 +990,8 @@ def create_enhanced_report_tab(agentic_modules_loaded_status: bool):
986
 
987
  # Report content display area
988
  with gr.Column(elem_classes=["report-content"]):
989
- agentic_report_display_md = gr.Markdown(
 
990
  """
991
  <div class="empty-state">
992
  <div class="empty-state-icon">📄</div>
@@ -996,7 +1001,7 @@ def create_enhanced_report_tab(agentic_modules_loaded_status: bool):
996
  </div>
997
  </div>
998
  """,
999
- elem_classes=["markdown"]
1000
  )
1001
 
1002
  # Error handling for when modules are not loaded
 
720
  }
721
 
722
  .status-badge::before {
723
+ content: "📊";
724
  margin-right: 8px;
725
  }
726
 
 
764
  min-height: 400px;
765
  }
766
 
767
+ /* MODIFIED: Removed .report-content .markdown as the component is now gr.HTML */
768
+ /* and direct styling is handled by the overall CSS */
769
+ .report-content .gr-html { /* Target the inner HTML component directly */
770
  padding: 40px;
771
  font-size: 1.1rem;
772
  line-height: 1.8;
 
889
  padding: 24px;
890
  }
891
 
892
+ .report-content .gr-html { /* Target the inner HTML component directly */
893
  padding: 24px;
894
  }
895
 
 
907
  }
908
 
909
  /* Gradio Component Overrides */
910
+ /* REMOVED: .gradio-container .report-content .markdown as component is now gr.HTML */
911
+ .gradio-container .report-content .gr-html { /* Target the inner HTML component directly */
912
  background: transparent !important;
913
  border: none !important;
914
  }
 
935
  color: #6b6b6b;
936
  }
937
 
938
+ /* MODIFIED: Removed animation for hourglass */
939
  .loading-indicator::before {
940
  content: "⏳";
941
  margin-right: 12px;
942
+ /* animation: spin 2s linear infinite; */ /* REMOVED ANIMATION */
943
  }
944
 
945
  @keyframes spin {
 
990
 
991
  # Report content display area
992
  with gr.Column(elem_classes=["report-content"]):
993
+ # MODIFIED: Changed from gr.Markdown to gr.HTML to render raw HTML from format_report_for_display
994
+ agentic_report_display_md = gr.HTML(
995
  """
996
  <div class="empty-state">
997
  <div class="empty-state-icon">📄</div>
 
1001
  </div>
1002
  </div>
1003
  """,
1004
+ elem_classes=["gr-html"] # Changed elem_classes to target gr-html if needed
1005
  )
1006
 
1007
  # Error handling for when modules are not loaded