Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -535,144 +535,148 @@ with gr.Blocks(
|
|
535 |
</div>
|
536 |
""")
|
537 |
|
538 |
-
# Enhanced Disclaimer Section with
|
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: linear-gradient(135deg, #
|
543 |
-
border:
|
544 |
border-radius: 15px;
|
545 |
padding: 25px;
|
546 |
margin-bottom: 20px;
|
547 |
-
box-shadow: 0
|
548 |
<div style="text-align: center; margin-bottom: 20px;">
|
549 |
-
<h3 style="color: #
|
550 |
β οΈ IMPORTANT DISCLAIMER β οΈ
|
551 |
</h3>
|
552 |
</div>
|
553 |
|
554 |
-
<div style="background:
|
555 |
border-radius: 10px;
|
556 |
-
padding:
|
557 |
-
color: #
|
558 |
font-size: 16px;
|
559 |
-
line-height: 1.
|
560 |
-
|
561 |
-
|
|
|
562 |
π <strong>FOR EDUCATIONAL PURPOSES ONLY</strong> π
|
563 |
</p>
|
564 |
<ul style="list-style: none; padding: 0; margin: 0;">
|
565 |
-
<li style="margin:
|
566 |
-
<strong>π« NOT FINANCIAL ADVICE:</strong> This AI tool is for learning and research only
|
567 |
</li>
|
568 |
-
<li style="margin:
|
569 |
-
<strong>β‘ AI CAN BE WRONG:</strong> Predictions may be inaccurate or completely wrong
|
570 |
</li>
|
571 |
-
<li style="margin:
|
572 |
-
<strong>πΌ CONSULT PROFESSIONALS:</strong> Always seek qualified financial advisors
|
573 |
</li>
|
574 |
-
<li style="margin:
|
575 |
-
<strong>π° INVEST RESPONSIBLY:</strong> Only invest what you can afford to lose
|
576 |
</li>
|
577 |
</ul>
|
578 |
</div>
|
579 |
</div>
|
580 |
|
581 |
<!-- Trading Decision Guide for Beginners -->
|
582 |
-
<div style="display: grid; grid-template-columns: 1fr 1fr 1fr; gap:
|
583 |
|
584 |
<!-- BUY Signal -->
|
585 |
<div style="background: linear-gradient(135deg, #27ae60, #2ecc71);
|
586 |
-
color:
|
587 |
-
padding:
|
588 |
border-radius: 15px;
|
589 |
text-align: center;
|
590 |
-
box-shadow: 0
|
591 |
border: 3px solid #27ae60;">
|
592 |
-
<div style="font-size:
|
593 |
-
<h4 style="margin: 0 0
|
594 |
-
<p style="margin: 0; font-size:
|
595 |
AI predicts price increase<br>
|
596 |
-
<strong>β οΈ Still risky - do research!</strong>
|
597 |
</p>
|
598 |
</div>
|
599 |
|
600 |
<!-- HOLD Signal -->
|
601 |
<div style="background: linear-gradient(135deg, #f39c12, #e67e22);
|
602 |
-
color:
|
603 |
-
padding:
|
604 |
border-radius: 15px;
|
605 |
text-align: center;
|
606 |
-
box-shadow: 0
|
607 |
border: 3px solid #f39c12;">
|
608 |
-
<div style="font-size:
|
609 |
-
<h4 style="margin: 0 0
|
610 |
-
<p style="margin: 0; font-size:
|
611 |
AI expects stable prices<br>
|
612 |
-
<strong>Wait and watch strategy</strong>
|
613 |
</p>
|
614 |
</div>
|
615 |
|
616 |
<!-- SELL Signal -->
|
617 |
<div style="background: linear-gradient(135deg, #e74c3c, #c0392b);
|
618 |
-
color:
|
619 |
-
padding:
|
620 |
border-radius: 15px;
|
621 |
text-align: center;
|
622 |
-
box-shadow: 0
|
623 |
border: 3px solid #e74c3c;">
|
624 |
-
<div style="font-size:
|
625 |
-
<h4 style="margin: 0 0
|
626 |
-
<p style="margin: 0; font-size:
|
627 |
AI predicts price decrease<br>
|
628 |
-
<strong>Consider reducing exposure</strong>
|
629 |
</p>
|
630 |
</div>
|
631 |
</div>
|
632 |
|
633 |
<!-- Beginner Tips -->
|
634 |
-
<div style="background: linear-gradient(135deg, #
|
635 |
-
border:
|
636 |
border-radius: 15px;
|
637 |
-
padding:
|
638 |
-
margin-top:
|
639 |
-
|
|
|
640 |
π‘ <strong>BEGINNER TIPS</strong> π‘
|
641 |
</h4>
|
642 |
-
<div style="display: grid; grid-template-columns: 1fr 1fr; gap:
|
643 |
-
<div style="background:
|
644 |
-
<strong>π― Start Small:</strong><br>
|
645 |
-
Begin with small amounts you can afford to lose completely
|
646 |
</div>
|
647 |
-
<div style="background:
|
648 |
-
<strong>π Keep Learning:</strong><br>
|
649 |
-
Study finance basics before making real investments
|
650 |
</div>
|
651 |
-
<div style="background:
|
652 |
-
<strong>π¦ Use Real Platforms:</strong><br>
|
653 |
-
Practice with paper trading before using real money
|
654 |
</div>
|
655 |
-
<div style="background:
|
656 |
-
<strong>β° Think Long-term:</strong><br>
|
657 |
-
Don't panic on daily market fluctuations
|
658 |
</div>
|
659 |
</div>
|
660 |
</div>
|
661 |
|
662 |
<!-- Final Warning -->
|
663 |
-
<div style="background: #
|
664 |
-
color:
|
665 |
-
padding:
|
666 |
border-radius: 10px;
|
667 |
text-align: center;
|
668 |
-
margin-top:
|
669 |
-
border:
|
670 |
-
|
|
|
671 |
π¨ <strong>REMEMBER:</strong> Past performance β Future results | Markets can crash | AI makes mistakes π¨
|
672 |
</p>
|
673 |
</div>
|
674 |
</div>
|
675 |
""")
|
|
|
676 |
|
677 |
with gr.Row():
|
678 |
with gr.Column(scale=1, min_width=300):
|
|
|
535 |
</div>
|
536 |
""")
|
537 |
|
538 |
+
# Enhanced Disclaimer Section with Proper Text Visibility
|
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: linear-gradient(135deg, #ff6b6b15, #feca5715);
|
543 |
+
border: 3px solid #ff6b6b;
|
544 |
border-radius: 15px;
|
545 |
padding: 25px;
|
546 |
margin-bottom: 20px;
|
547 |
+
box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);">
|
548 |
<div style="text-align: center; margin-bottom: 20px;">
|
549 |
+
<h3 style="color: #000000; margin: 0; font-size: 1.8em; font-weight: bold; text-shadow: none;">
|
550 |
β οΈ IMPORTANT DISCLAIMER β οΈ
|
551 |
</h3>
|
552 |
</div>
|
553 |
|
554 |
+
<div style="background: #ffffff;
|
555 |
border-radius: 10px;
|
556 |
+
padding: 25px;
|
557 |
+
color: #000000;
|
558 |
font-size: 16px;
|
559 |
+
line-height: 1.7;
|
560 |
+
border: 2px solid #e0e0e0;
|
561 |
+
box-shadow: 0 4px 10px rgba(0,0,0,0.1);">
|
562 |
+
<p style="margin: 0 0 20px 0; text-align: center; font-weight: bold; font-size: 18px; color: #000000;">
|
563 |
π <strong>FOR EDUCATIONAL PURPOSES ONLY</strong> π
|
564 |
</p>
|
565 |
<ul style="list-style: none; padding: 0; margin: 0;">
|
566 |
+
<li style="margin: 12px 0; padding: 15px; background: #f8f9fa; border-radius: 8px; border-left: 5px solid #3498db; color: #000000;">
|
567 |
+
<strong style="color: #000000;">π« NOT FINANCIAL ADVICE:</strong> This AI tool is for learning and research only
|
568 |
</li>
|
569 |
+
<li style="margin: 12px 0; padding: 15px; background: #f8f9fa; border-radius: 8px; border-left: 5px solid #e74c3c; color: #000000;">
|
570 |
+
<strong style="color: #000000;">β‘ AI CAN BE WRONG:</strong> Predictions may be inaccurate or completely wrong
|
571 |
</li>
|
572 |
+
<li style="margin: 12px 0; padding: 15px; background: #f8f9fa; border-radius: 8px; border-left: 5px solid #f39c12; color: #000000;">
|
573 |
+
<strong style="color: #000000;">πΌ CONSULT PROFESSIONALS:</strong> Always seek qualified financial advisors
|
574 |
</li>
|
575 |
+
<li style="margin: 12px 0; padding: 15px; background: #f8f9fa; border-radius: 8px; border-left: 5px solid #9b59b6; color: #000000;">
|
576 |
+
<strong style="color: #000000;">π° INVEST RESPONSIBLY:</strong> Only invest what you can afford to lose
|
577 |
</li>
|
578 |
</ul>
|
579 |
</div>
|
580 |
</div>
|
581 |
|
582 |
<!-- Trading Decision Guide for Beginners -->
|
583 |
+
<div style="display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin: 25px 0;">
|
584 |
|
585 |
<!-- BUY Signal -->
|
586 |
<div style="background: linear-gradient(135deg, #27ae60, #2ecc71);
|
587 |
+
color: #ffffff;
|
588 |
+
padding: 25px;
|
589 |
border-radius: 15px;
|
590 |
text-align: center;
|
591 |
+
box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
|
592 |
border: 3px solid #27ae60;">
|
593 |
+
<div style="font-size: 3em; margin-bottom: 15px;">π</div>
|
594 |
+
<h4 style="margin: 0 0 15px 0; font-size: 1.4em; font-weight: bold; color: #ffffff;">GREEN = BUY SIGNAL</h4>
|
595 |
+
<p style="margin: 0; font-size: 15px; color: #ffffff; line-height: 1.4;">
|
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: linear-gradient(135deg, #f39c12, #e67e22);
|
603 |
+
color: #ffffff;
|
604 |
+
padding: 25px;
|
605 |
border-radius: 15px;
|
606 |
text-align: center;
|
607 |
+
box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
|
608 |
border: 3px solid #f39c12;">
|
609 |
+
<div style="font-size: 3em; margin-bottom: 15px;">βͺ</div>
|
610 |
+
<h4 style="margin: 0 0 15px 0; font-size: 1.4em; font-weight: bold; color: #ffffff;">YELLOW = HOLD</h4>
|
611 |
+
<p style="margin: 0; font-size: 15px; color: #ffffff; line-height: 1.4;">
|
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: linear-gradient(135deg, #e74c3c, #c0392b);
|
619 |
+
color: #ffffff;
|
620 |
+
padding: 25px;
|
621 |
border-radius: 15px;
|
622 |
text-align: center;
|
623 |
+
box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
|
624 |
border: 3px solid #e74c3c;">
|
625 |
+
<div style="font-size: 3em; margin-bottom: 15px;">π</div>
|
626 |
+
<h4 style="margin: 0 0 15px 0; font-size: 1.4em; font-weight: bold; color: #ffffff;">RED = SELL SIGNAL</h4>
|
627 |
+
<p style="margin: 0; font-size: 15px; color: #ffffff; line-height: 1.4;">
|
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: linear-gradient(135deg, #ffffff, #f8f9fa);
|
636 |
+
border: 3px solid #3498db;
|
637 |
border-radius: 15px;
|
638 |
+
padding: 25px;
|
639 |
+
margin-top: 25px;
|
640 |
+
box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);">
|
641 |
+
<h4 style="color: #000000; margin: 0 0 20px 0; text-align: center; font-size: 1.5em; font-weight: bold;">
|
642 |
π‘ <strong>BEGINNER TIPS</strong> π‘
|
643 |
</h4>
|
644 |
+
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 20px;">
|
645 |
+
<div style="background: #ffffff; padding: 20px; border-radius: 10px; box-shadow: 0 3px 15px rgba(0,0,0,0.1); border: 2px solid #e0e0e0;">
|
646 |
+
<strong style="color: #000000; font-size: 16px;">π― Start Small:</strong><br>
|
647 |
+
<span style="color: #000000; font-size: 15px;">Begin with small amounts you can afford to lose completely</span>
|
648 |
</div>
|
649 |
+
<div style="background: #ffffff; padding: 20px; border-radius: 10px; box-shadow: 0 3px 15px rgba(0,0,0,0.1); border: 2px solid #e0e0e0;">
|
650 |
+
<strong style="color: #000000; font-size: 16px;">π Keep Learning:</strong><br>
|
651 |
+
<span style="color: #000000; font-size: 15px;">Study finance basics before making real investments</span>
|
652 |
</div>
|
653 |
+
<div style="background: #ffffff; padding: 20px; border-radius: 10px; box-shadow: 0 3px 15px rgba(0,0,0,0.1); border: 2px solid #e0e0e0;">
|
654 |
+
<strong style="color: #000000; font-size: 16px;">π¦ Use Real Platforms:</strong><br>
|
655 |
+
<span style="color: #000000; font-size: 15px;">Practice with paper trading before using real money</span>
|
656 |
</div>
|
657 |
+
<div style="background: #ffffff; padding: 20px; border-radius: 10px; box-shadow: 0 3px 15px rgba(0,0,0,0.1); border: 2px solid #e0e0e0;">
|
658 |
+
<strong style="color: #000000; font-size: 16px;">β° Think Long-term:</strong><br>
|
659 |
+
<span style="color: #000000; font-size: 15px;">Don't panic on daily market fluctuations</span>
|
660 |
</div>
|
661 |
</div>
|
662 |
</div>
|
663 |
|
664 |
<!-- Final Warning -->
|
665 |
+
<div style="background: #2c3e50;
|
666 |
+
color: #ffffff;
|
667 |
+
padding: 20px;
|
668 |
border-radius: 10px;
|
669 |
text-align: center;
|
670 |
+
margin-top: 25px;
|
671 |
+
border: 3px solid #34495e;
|
672 |
+
box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);">
|
673 |
+
<p style="margin: 0; font-weight: bold; font-size: 17px; color: #ffffff;">
|
674 |
π¨ <strong>REMEMBER:</strong> Past performance β Future results | Markets can crash | AI makes mistakes π¨
|
675 |
</p>
|
676 |
</div>
|
677 |
</div>
|
678 |
""")
|
679 |
+
|
680 |
|
681 |
with gr.Row():
|
682 |
with gr.Column(scale=1, min_width=300):
|