Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -535,128 +535,274 @@ with gr.Blocks(
|
|
535 |
</div>
|
536 |
""")
|
537 |
|
538 |
-
|
539 |
gr.HTML("""
|
540 |
<div style="max-width: 900px; margin: 20px auto; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;">
|
|
|
541 |
<!-- Main Disclaimer Box -->
|
542 |
-
<div style="background:
|
543 |
-
border:
|
544 |
border-radius: 15px;
|
545 |
-
padding:
|
546 |
-
margin-bottom:
|
547 |
-
box-shadow: 0
|
548 |
-
|
549 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
550 |
β οΈ IMPORTANT DISCLAIMER β οΈ
|
551 |
-
</
|
552 |
</div>
|
553 |
|
554 |
<div style="background: #ffffff;
|
555 |
-
border-radius:
|
556 |
padding: 25px;
|
557 |
color: #000000;
|
558 |
font-size: 16px;
|
559 |
-
line-height: 1.
|
560 |
-
|
561 |
-
|
562 |
-
<
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
579 |
</div>
|
580 |
</div>
|
581 |
|
582 |
<!-- Trading Decision Guide for Beginners -->
|
583 |
-
<div style="display: grid; grid-template-columns: 1fr 1fr 1fr; gap:
|
584 |
|
585 |
<!-- BUY Signal -->
|
586 |
-
<div style="background:
|
587 |
color: #ffffff;
|
588 |
padding: 25px;
|
589 |
border-radius: 15px;
|
590 |
text-align: center;
|
591 |
-
box-shadow: 0
|
592 |
-
border:
|
593 |
<div style="font-size: 3em; margin-bottom: 15px;">π</div>
|
594 |
-
<
|
595 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
596 |
AI predicts price increase<br>
|
597 |
<strong style="color: #ffffff;">β οΈ Still risky - do research!</strong>
|
598 |
</p>
|
599 |
</div>
|
600 |
|
601 |
<!-- HOLD Signal -->
|
602 |
-
<div style="background:
|
603 |
color: #ffffff;
|
604 |
padding: 25px;
|
605 |
border-radius: 15px;
|
606 |
text-align: center;
|
607 |
-
box-shadow: 0
|
608 |
-
border:
|
609 |
<div style="font-size: 3em; margin-bottom: 15px;">βͺ</div>
|
610 |
-
<
|
611 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
612 |
AI expects stable prices<br>
|
613 |
<strong style="color: #ffffff;">Wait and watch strategy</strong>
|
614 |
</p>
|
615 |
</div>
|
616 |
|
617 |
<!-- SELL Signal -->
|
618 |
-
<div style="background:
|
619 |
color: #ffffff;
|
620 |
padding: 25px;
|
621 |
border-radius: 15px;
|
622 |
text-align: center;
|
623 |
-
box-shadow: 0
|
624 |
-
border:
|
625 |
<div style="font-size: 3em; margin-bottom: 15px;">π</div>
|
626 |
-
<
|
627 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
628 |
AI predicts price decrease<br>
|
629 |
<strong style="color: #ffffff;">Consider reducing exposure</strong>
|
630 |
</p>
|
631 |
</div>
|
632 |
</div>
|
633 |
|
634 |
-
<!-- Beginner Tips -->
|
635 |
-
<div style="background:
|
636 |
-
border:
|
637 |
border-radius: 15px;
|
638 |
-
padding:
|
639 |
-
margin-top:
|
640 |
-
box-shadow: 0
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
648 |
</div>
|
649 |
-
<div style="background: #ffffff;
|
650 |
-
|
651 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
652 |
</div>
|
653 |
-
<div style="background: #ffffff;
|
654 |
-
|
655 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
656 |
</div>
|
657 |
-
<div style="background: #ffffff;
|
658 |
-
|
659 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
660 |
</div>
|
661 |
</div>
|
662 |
</div>
|
@@ -664,19 +810,24 @@ with gr.Blocks(
|
|
664 |
<!-- Final Warning -->
|
665 |
<div style="background: #2c3e50;
|
666 |
color: #ffffff;
|
667 |
-
padding:
|
668 |
-
border-radius:
|
669 |
text-align: center;
|
670 |
-
margin-top:
|
671 |
-
border:
|
672 |
-
box-shadow: 0
|
673 |
-
<
|
674 |
-
|
675 |
-
|
|
|
|
|
|
|
|
|
676 |
</div>
|
677 |
</div>
|
678 |
""")
|
679 |
|
|
|
680 |
|
681 |
with gr.Row():
|
682 |
with gr.Column(scale=1, min_width=300):
|
|
|
535 |
</div>
|
536 |
""")
|
537 |
|
538 |
+
# Enhanced Disclaimer Section with Fully Visible Headings
|
539 |
gr.HTML("""
|
540 |
<div style="max-width: 900px; margin: 20px auto; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;">
|
541 |
+
|
542 |
<!-- Main Disclaimer Box -->
|
543 |
+
<div style="background: #ffffff;
|
544 |
+
border: 5px solid #ff6b6b;
|
545 |
border-radius: 15px;
|
546 |
+
padding: 30px;
|
547 |
+
margin-bottom: 30px;
|
548 |
+
box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);">
|
549 |
+
|
550 |
+
<!-- FIXED DISCLAIMER HEADING -->
|
551 |
+
<div style="background: #ff6b6b;
|
552 |
+
color: #ffffff;
|
553 |
+
text-align: center;
|
554 |
+
margin: -30px -30px 25px -30px;
|
555 |
+
padding: 25px;
|
556 |
+
border-radius: 10px 10px 0 0;">
|
557 |
+
<h2 style="color: #ffffff;
|
558 |
+
margin: 0;
|
559 |
+
font-size: 2.2em;
|
560 |
+
font-weight: bold;
|
561 |
+
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);">
|
562 |
β οΈ IMPORTANT DISCLAIMER β οΈ
|
563 |
+
</h2>
|
564 |
</div>
|
565 |
|
566 |
<div style="background: #ffffff;
|
567 |
+
border-radius: 12px;
|
568 |
padding: 25px;
|
569 |
color: #000000;
|
570 |
font-size: 16px;
|
571 |
+
line-height: 1.8;">
|
572 |
+
|
573 |
+
<!-- Educational Purpose Header -->
|
574 |
+
<div style="background: #f8f9fa;
|
575 |
+
border: 3px solid #dee2e6;
|
576 |
+
border-radius: 10px;
|
577 |
+
padding: 20px;
|
578 |
+
text-align: center;
|
579 |
+
margin-bottom: 25px;">
|
580 |
+
<h3 style="margin: 0;
|
581 |
+
font-weight: bold;
|
582 |
+
font-size: 1.4em;
|
583 |
+
color: #000000;">
|
584 |
+
π FOR EDUCATIONAL PURPOSES ONLY π
|
585 |
+
</h3>
|
586 |
+
</div>
|
587 |
+
|
588 |
+
<!-- Disclaimer Points -->
|
589 |
+
<div style="display: grid; gap: 15px;">
|
590 |
+
<div style="background: #ffffff;
|
591 |
+
border: 3px solid #3498db;
|
592 |
+
border-radius: 10px;
|
593 |
+
padding: 20px;
|
594 |
+
box-shadow: 0 3px 10px rgba(0,0,0,0.1);">
|
595 |
+
<h4 style="color: #000000; margin: 0 0 8px 0; font-size: 1.1em;">
|
596 |
+
π« NOT FINANCIAL ADVICE
|
597 |
+
</h4>
|
598 |
+
<p style="color: #000000; margin: 0; font-size: 15px;">
|
599 |
+
This AI tool is for learning and research only
|
600 |
+
</p>
|
601 |
+
</div>
|
602 |
+
|
603 |
+
<div style="background: #ffffff;
|
604 |
+
border: 3px solid #e74c3c;
|
605 |
+
border-radius: 10px;
|
606 |
+
padding: 20px;
|
607 |
+
box-shadow: 0 3px 10px rgba(0,0,0,0.1);">
|
608 |
+
<h4 style="color: #000000; margin: 0 0 8px 0; font-size: 1.1em;">
|
609 |
+
β‘ AI CAN BE WRONG
|
610 |
+
</h4>
|
611 |
+
<p style="color: #000000; margin: 0; font-size: 15px;">
|
612 |
+
Predictions may be inaccurate or completely wrong
|
613 |
+
</p>
|
614 |
+
</div>
|
615 |
+
|
616 |
+
<div style="background: #ffffff;
|
617 |
+
border: 3px solid #f39c12;
|
618 |
+
border-radius: 10px;
|
619 |
+
padding: 20px;
|
620 |
+
box-shadow: 0 3px 10px rgba(0,0,0,0.1);">
|
621 |
+
<h4 style="color: #000000; margin: 0 0 8px 0; font-size: 1.1em;">
|
622 |
+
πΌ CONSULT PROFESSIONALS
|
623 |
+
</h4>
|
624 |
+
<p style="color: #000000; margin: 0; font-size: 15px;">
|
625 |
+
Always seek qualified financial advisors
|
626 |
+
</p>
|
627 |
+
</div>
|
628 |
+
|
629 |
+
<div style="background: #ffffff;
|
630 |
+
border: 3px solid #9b59b6;
|
631 |
+
border-radius: 10px;
|
632 |
+
padding: 20px;
|
633 |
+
box-shadow: 0 3px 10px rgba(0,0,0,0.1);">
|
634 |
+
<h4 style="color: #000000; margin: 0 0 8px 0; font-size: 1.1em;">
|
635 |
+
π° INVEST RESPONSIBLY
|
636 |
+
</h4>
|
637 |
+
<p style="color: #000000; margin: 0; font-size: 15px;">
|
638 |
+
Only invest what you can afford to lose
|
639 |
+
</p>
|
640 |
+
</div>
|
641 |
+
</div>
|
642 |
</div>
|
643 |
</div>
|
644 |
|
645 |
<!-- Trading Decision Guide for Beginners -->
|
646 |
+
<div style="display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 25px; margin: 30px 0;">
|
647 |
|
648 |
<!-- BUY Signal -->
|
649 |
+
<div style="background: #27ae60;
|
650 |
color: #ffffff;
|
651 |
padding: 25px;
|
652 |
border-radius: 15px;
|
653 |
text-align: center;
|
654 |
+
box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
|
655 |
+
border: 4px solid #229954;">
|
656 |
<div style="font-size: 3em; margin-bottom: 15px;">π</div>
|
657 |
+
<h3 style="margin: 0 0 15px 0;
|
658 |
+
font-size: 1.3em;
|
659 |
+
font-weight: bold;
|
660 |
+
color: #ffffff;
|
661 |
+
text-shadow: 1px 1px 2px rgba(0,0,0,0.3);">
|
662 |
+
GREEN = BUY SIGNAL
|
663 |
+
</h3>
|
664 |
+
<p style="margin: 0;
|
665 |
+
font-size: 14px;
|
666 |
+
color: #ffffff;
|
667 |
+
line-height: 1.4;">
|
668 |
AI predicts price increase<br>
|
669 |
<strong style="color: #ffffff;">β οΈ Still risky - do research!</strong>
|
670 |
</p>
|
671 |
</div>
|
672 |
|
673 |
<!-- HOLD Signal -->
|
674 |
+
<div style="background: #f39c12;
|
675 |
color: #ffffff;
|
676 |
padding: 25px;
|
677 |
border-radius: 15px;
|
678 |
text-align: center;
|
679 |
+
box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
|
680 |
+
border: 4px solid #e67e22;">
|
681 |
<div style="font-size: 3em; margin-bottom: 15px;">βͺ</div>
|
682 |
+
<h3 style="margin: 0 0 15px 0;
|
683 |
+
font-size: 1.3em;
|
684 |
+
font-weight: bold;
|
685 |
+
color: #ffffff;
|
686 |
+
text-shadow: 1px 1px 2px rgba(0,0,0,0.3);">
|
687 |
+
YELLOW = HOLD
|
688 |
+
</h3>
|
689 |
+
<p style="margin: 0;
|
690 |
+
font-size: 14px;
|
691 |
+
color: #ffffff;
|
692 |
+
line-height: 1.4;">
|
693 |
AI expects stable prices<br>
|
694 |
<strong style="color: #ffffff;">Wait and watch strategy</strong>
|
695 |
</p>
|
696 |
</div>
|
697 |
|
698 |
<!-- SELL Signal -->
|
699 |
+
<div style="background: #e74c3c;
|
700 |
color: #ffffff;
|
701 |
padding: 25px;
|
702 |
border-radius: 15px;
|
703 |
text-align: center;
|
704 |
+
box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
|
705 |
+
border: 4px solid #c0392b;">
|
706 |
<div style="font-size: 3em; margin-bottom: 15px;">π</div>
|
707 |
+
<h3 style="margin: 0 0 15px 0;
|
708 |
+
font-size: 1.3em;
|
709 |
+
font-weight: bold;
|
710 |
+
color: #ffffff;
|
711 |
+
text-shadow: 1px 1px 2px rgba(0,0,0,0.3);">
|
712 |
+
RED = SELL SIGNAL
|
713 |
+
</h3>
|
714 |
+
<p style="margin: 0;
|
715 |
+
font-size: 14px;
|
716 |
+
color: #ffffff;
|
717 |
+
line-height: 1.4;">
|
718 |
AI predicts price decrease<br>
|
719 |
<strong style="color: #ffffff;">Consider reducing exposure</strong>
|
720 |
</p>
|
721 |
</div>
|
722 |
</div>
|
723 |
|
724 |
+
<!-- Beginner Tips - COMPLETELY FIXED VERSION -->
|
725 |
+
<div style="background: #ffffff;
|
726 |
+
border: 5px solid #3498db;
|
727 |
border-radius: 15px;
|
728 |
+
padding: 30px;
|
729 |
+
margin-top: 30px;
|
730 |
+
box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);">
|
731 |
+
|
732 |
+
<!-- FIXED BEGINNER TIPS HEADING -->
|
733 |
+
<div style="background: #3498db;
|
734 |
+
color: #ffffff;
|
735 |
+
text-align: center;
|
736 |
+
margin: -30px -30px 25px -30px;
|
737 |
+
padding: 25px;
|
738 |
+
border-radius: 10px 10px 0 0;">
|
739 |
+
<h2 style="color: #ffffff;
|
740 |
+
margin: 0;
|
741 |
+
font-size: 2em;
|
742 |
+
font-weight: bold;
|
743 |
+
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);">
|
744 |
+
π‘ BEGINNER TIPS π‘
|
745 |
+
</h2>
|
746 |
+
</div>
|
747 |
+
|
748 |
+
<div style="display: grid;
|
749 |
+
grid-template-columns: 1fr 1fr;
|
750 |
+
gap: 25px;">
|
751 |
+
<div style="background: #ffffff;
|
752 |
+
padding: 25px;
|
753 |
+
border-radius: 12px;
|
754 |
+
box-shadow: 0 6px 20px rgba(0,0,0,0.15);
|
755 |
+
border: 4px solid #27ae60;">
|
756 |
+
<h4 style="color: #000000;
|
757 |
+
font-size: 1.2em;
|
758 |
+
margin: 0 0 12px 0;
|
759 |
+
font-weight: bold;">π― Start Small</h4>
|
760 |
+
<p style="color: #000000;
|
761 |
+
font-size: 15px;
|
762 |
+
margin: 0;
|
763 |
+
line-height: 1.5;">Begin with small amounts you can afford to lose completely</p>
|
764 |
</div>
|
765 |
+
<div style="background: #ffffff;
|
766 |
+
padding: 25px;
|
767 |
+
border-radius: 12px;
|
768 |
+
box-shadow: 0 6px 20px rgba(0,0,0,0.15);
|
769 |
+
border: 4px solid #e74c3c;">
|
770 |
+
<h4 style="color: #000000;
|
771 |
+
font-size: 1.2em;
|
772 |
+
margin: 0 0 12px 0;
|
773 |
+
font-weight: bold;">π Keep Learning</h4>
|
774 |
+
<p style="color: #000000;
|
775 |
+
font-size: 15px;
|
776 |
+
margin: 0;
|
777 |
+
line-height: 1.5;">Study finance basics before making real investments</p>
|
778 |
</div>
|
779 |
+
<div style="background: #ffffff;
|
780 |
+
padding: 25px;
|
781 |
+
border-radius: 12px;
|
782 |
+
box-shadow: 0 6px 20px rgba(0,0,0,0.15);
|
783 |
+
border: 4px solid #f39c12;">
|
784 |
+
<h4 style="color: #000000;
|
785 |
+
font-size: 1.2em;
|
786 |
+
margin: 0 0 12px 0;
|
787 |
+
font-weight: bold;">π¦ Use Real Platforms</h4>
|
788 |
+
<p style="color: #000000;
|
789 |
+
font-size: 15px;
|
790 |
+
margin: 0;
|
791 |
+
line-height: 1.5;">Practice with paper trading before using real money</p>
|
792 |
</div>
|
793 |
+
<div style="background: #ffffff;
|
794 |
+
padding: 25px;
|
795 |
+
border-radius: 12px;
|
796 |
+
box-shadow: 0 6px 20px rgba(0,0,0,0.15);
|
797 |
+
border: 4px solid #9b59b6;">
|
798 |
+
<h4 style="color: #000000;
|
799 |
+
font-size: 1.2em;
|
800 |
+
margin: 0 0 12px 0;
|
801 |
+
font-weight: bold;">β° Think Long-term</h4>
|
802 |
+
<p style="color: #000000;
|
803 |
+
font-size: 15px;
|
804 |
+
margin: 0;
|
805 |
+
line-height: 1.5;">Don't panic on daily market fluctuations</p>
|
806 |
</div>
|
807 |
</div>
|
808 |
</div>
|
|
|
810 |
<!-- Final Warning -->
|
811 |
<div style="background: #2c3e50;
|
812 |
color: #ffffff;
|
813 |
+
padding: 25px;
|
814 |
+
border-radius: 12px;
|
815 |
text-align: center;
|
816 |
+
margin-top: 30px;
|
817 |
+
border: 4px solid #34495e;
|
818 |
+
box-shadow: 0 8px 25px rgba(44, 62, 80, 0.4);">
|
819 |
+
<h3 style="margin: 0;
|
820 |
+
font-weight: bold;
|
821 |
+
font-size: 1.1em;
|
822 |
+
color: #ffffff;
|
823 |
+
text-shadow: 1px 1px 2px rgba(0,0,0,0.5);">
|
824 |
+
π¨ REMEMBER: Past performance β Future results | Markets can crash | AI makes mistakes π¨
|
825 |
+
</h3>
|
826 |
</div>
|
827 |
</div>
|
828 |
""")
|
829 |
|
830 |
+
|
831 |
|
832 |
with gr.Row():
|
833 |
with gr.Column(scale=1, min_width=300):
|