barathvasan-dev commited on
Commit
25c874b
Β·
1 Parent(s): 45a6314

Fix: Remove unsupported show_copy_button parameter from Gradio Textbox components for compatibility

Browse files
Files changed (1) hide show
  1. app.py +12 -24
app.py CHANGED
@@ -655,15 +655,13 @@ with gr.Blocks(
655
  invest_narrative = gr.Textbox(
656
  label="πŸ“‹ Investigation Narrative",
657
  lines=8,
658
- interactive=False,
659
- show_copy_button=True
660
  )
661
 
662
  invest_findings = gr.Textbox(
663
  label="🚨 Key Findings",
664
  lines=8,
665
- interactive=False,
666
- show_copy_button=True
667
  )
668
 
669
  invest_analysis = gr.JSON(
@@ -673,8 +671,7 @@ with gr.Blocks(
673
  invest_recommendations = gr.Textbox(
674
  label="βœ… Recommendations",
675
  lines=6,
676
- interactive=False,
677
- show_copy_button=True
678
  )
679
 
680
  investigate_btn.click(
@@ -702,15 +699,13 @@ with gr.Blocks(
702
  area_narrative = gr.Textbox(
703
  label="πŸ“‹ Area Intelligence Report",
704
  lines=8,
705
- interactive=False,
706
- show_copy_button=True
707
  )
708
 
709
  area_findings = gr.Textbox(
710
  label="🚨 Key Findings",
711
  lines=8,
712
- interactive=False,
713
- show_copy_button=True
714
  )
715
 
716
  area_analysis = gr.JSON(
@@ -720,8 +715,7 @@ with gr.Blocks(
720
  area_recommendations = gr.Textbox(
721
  label="βœ… Security Recommendations",
722
  lines=6,
723
- interactive=False,
724
- show_copy_button=True
725
  )
726
 
727
  area_investigate_btn.click(
@@ -743,15 +737,13 @@ with gr.Blocks(
743
  midnight_narrative = gr.Textbox(
744
  label="πŸ“‹ Night Activity Report",
745
  lines=8,
746
- interactive=False,
747
- show_copy_button=True
748
  )
749
 
750
  midnight_findings = gr.Textbox(
751
  label="🚨 Suspicious Patterns",
752
  lines=8,
753
- interactive=False,
754
- show_copy_button=True
755
  )
756
 
757
  midnight_analysis = gr.JSON(
@@ -761,8 +753,7 @@ with gr.Blocks(
761
  midnight_recommendations = gr.Textbox(
762
  label="βœ… Tactical Recommendations",
763
  lines=6,
764
- interactive=False,
765
- show_copy_button=True
766
  )
767
 
768
  midnight_btn.click(
@@ -784,15 +775,13 @@ with gr.Blocks(
784
  suspicious_narrative = gr.Textbox(
785
  label="πŸ“‹ Investigation Summary",
786
  lines=8,
787
- interactive=False,
788
- show_copy_button=True
789
  )
790
 
791
  suspicious_findings = gr.Textbox(
792
  label="🚨 Alert Details",
793
  lines=8,
794
- interactive=False,
795
- show_copy_button=True
796
  )
797
 
798
  suspicious_analysis = gr.JSON(
@@ -802,8 +791,7 @@ with gr.Blocks(
802
  suspicious_recommendations = gr.Textbox(
803
  label="βœ… Action Items",
804
  lines=6,
805
- interactive=False,
806
- show_copy_button=True
807
  )
808
 
809
  suspicious_btn.click(
 
655
  invest_narrative = gr.Textbox(
656
  label="πŸ“‹ Investigation Narrative",
657
  lines=8,
658
+ interactive=False
 
659
  )
660
 
661
  invest_findings = gr.Textbox(
662
  label="🚨 Key Findings",
663
  lines=8,
664
+ interactive=False
 
665
  )
666
 
667
  invest_analysis = gr.JSON(
 
671
  invest_recommendations = gr.Textbox(
672
  label="βœ… Recommendations",
673
  lines=6,
674
+ interactive=False
 
675
  )
676
 
677
  investigate_btn.click(
 
699
  area_narrative = gr.Textbox(
700
  label="πŸ“‹ Area Intelligence Report",
701
  lines=8,
702
+ interactive=False
 
703
  )
704
 
705
  area_findings = gr.Textbox(
706
  label="🚨 Key Findings",
707
  lines=8,
708
+ interactive=False
 
709
  )
710
 
711
  area_analysis = gr.JSON(
 
715
  area_recommendations = gr.Textbox(
716
  label="βœ… Security Recommendations",
717
  lines=6,
718
+ interactive=False
 
719
  )
720
 
721
  area_investigate_btn.click(
 
737
  midnight_narrative = gr.Textbox(
738
  label="πŸ“‹ Night Activity Report",
739
  lines=8,
740
+ interactive=False
 
741
  )
742
 
743
  midnight_findings = gr.Textbox(
744
  label="🚨 Suspicious Patterns",
745
  lines=8,
746
+ interactive=False
 
747
  )
748
 
749
  midnight_analysis = gr.JSON(
 
753
  midnight_recommendations = gr.Textbox(
754
  label="βœ… Tactical Recommendations",
755
  lines=6,
756
+ interactive=False
 
757
  )
758
 
759
  midnight_btn.click(
 
775
  suspicious_narrative = gr.Textbox(
776
  label="πŸ“‹ Investigation Summary",
777
  lines=8,
778
+ interactive=False
 
779
  )
780
 
781
  suspicious_findings = gr.Textbox(
782
  label="🚨 Alert Details",
783
  lines=8,
784
+ interactive=False
 
785
  )
786
 
787
  suspicious_analysis = gr.JSON(
 
791
  suspicious_recommendations = gr.Textbox(
792
  label="βœ… Action Items",
793
  lines=6,
794
+ interactive=False
 
795
  )
796
 
797
  suspicious_btn.click(