ArnabDeo commited on
Commit
835304a
Β·
verified Β·
1 Parent(s): 284d5a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +69 -65
app.py CHANGED
@@ -535,144 +535,148 @@ with gr.Blocks(
535
  </div>
536
  """)
537
 
538
- # Enhanced Disclaimer Section with Visual Design
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, #ff6b6b20, #feca5720);
543
- border: 2px solid #ff6b6b;
544
  border-radius: 15px;
545
  padding: 25px;
546
  margin-bottom: 20px;
547
- box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);">
548
  <div style="text-align: center; margin-bottom: 20px;">
549
- <h3 style="color: #2c3e50; margin: 0; font-size: 1.8em; font-weight: bold;">
550
  ⚠️ IMPORTANT DISCLAIMER ⚠️
551
  </h3>
552
  </div>
553
 
554
- <div style="background: white;
555
  border-radius: 10px;
556
- padding: 20px;
557
- color: #2c3e50;
558
  font-size: 16px;
559
- line-height: 1.6;
560
- box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);">
561
- <p style="margin: 0 0 15px 0; text-align: center; font-weight: bold; font-size: 18px;">
 
562
  πŸ“š <strong>FOR EDUCATIONAL PURPOSES ONLY</strong> πŸ“š
563
  </p>
564
  <ul style="list-style: none; padding: 0; margin: 0;">
565
- <li style="margin: 10px 0; padding: 8px; background: #f8f9fa; border-radius: 8px; border-left: 4px solid #3498db;">
566
- <strong>🚫 NOT FINANCIAL ADVICE:</strong> This AI tool is for learning and research only
567
  </li>
568
- <li style="margin: 10px 0; padding: 8px; background: #f8f9fa; border-radius: 8px; border-left: 4px solid #e74c3c;">
569
- <strong>⚑ AI CAN BE WRONG:</strong> Predictions may be inaccurate or completely wrong
570
  </li>
571
- <li style="margin: 10px 0; padding: 8px; background: #f8f9fa; border-radius: 8px; border-left: 4px solid #f39c12;">
572
- <strong>πŸ’Ό CONSULT PROFESSIONALS:</strong> Always seek qualified financial advisors
573
  </li>
574
- <li style="margin: 10px 0; padding: 8px; background: #f8f9fa; border-radius: 8px; border-left: 4px solid #9b59b6;">
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: 15px; margin: 20px 0;">
583
 
584
  <!-- BUY Signal -->
585
  <div style="background: linear-gradient(135deg, #27ae60, #2ecc71);
586
- color: white;
587
- padding: 20px;
588
  border-radius: 15px;
589
  text-align: center;
590
- box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
591
  border: 3px solid #27ae60;">
592
- <div style="font-size: 2.5em; margin-bottom: 10px;">πŸ“ˆ</div>
593
- <h4 style="margin: 0 0 10px 0; font-size: 1.3em; font-weight: bold;">GREEN = BUY SIGNAL</h4>
594
- <p style="margin: 0; font-size: 14px; opacity: 0.9;">
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: white;
603
- padding: 20px;
604
  border-radius: 15px;
605
  text-align: center;
606
- box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
607
  border: 3px solid #f39c12;">
608
- <div style="font-size: 2.5em; margin-bottom: 10px;">βšͺ</div>
609
- <h4 style="margin: 0 0 10px 0; font-size: 1.3em; font-weight: bold;">YELLOW = HOLD</h4>
610
- <p style="margin: 0; font-size: 14px; opacity: 0.9;">
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: white;
619
- padding: 20px;
620
  border-radius: 15px;
621
  text-align: center;
622
- box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
623
  border: 3px solid #e74c3c;">
624
- <div style="font-size: 2.5em; margin-bottom: 10px;">πŸ“‰</div>
625
- <h4 style="margin: 0 0 10px 0; font-size: 1.3em; font-weight: bold;">RED = SELL SIGNAL</h4>
626
- <p style="margin: 0; font-size: 14px; opacity: 0.9;">
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, #3498db20, #9b59b620);
635
- border: 2px solid #3498db;
636
  border-radius: 15px;
637
- padding: 20px;
638
- margin-top: 20px;">
639
- <h4 style="color: #2c3e50; margin: 0 0 15px 0; text-align: center; font-size: 1.4em;">
 
640
  πŸ’‘ <strong>BEGINNER TIPS</strong> πŸ’‘
641
  </h4>
642
- <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 15px; color: #2c3e50;">
643
- <div style="background: white; padding: 15px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1);">
644
- <strong>🎯 Start Small:</strong><br>
645
- Begin with small amounts you can afford to lose completely
646
  </div>
647
- <div style="background: white; padding: 15px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1);">
648
- <strong>πŸ“š Keep Learning:</strong><br>
649
- Study finance basics before making real investments
650
  </div>
651
- <div style="background: white; padding: 15px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1);">
652
- <strong>🏦 Use Real Platforms:</strong><br>
653
- Practice with paper trading before using real money
654
  </div>
655
- <div style="background: white; padding: 15px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1);">
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: #34495e;
664
- color: white;
665
- padding: 15px;
666
  border-radius: 10px;
667
  text-align: center;
668
- margin-top: 20px;
669
- border: 2px solid #2c3e50;">
670
- <p style="margin: 0; font-weight: bold; font-size: 16px;">
 
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):