Mustafa Başar commited on
Commit
2a7cf04
·
verified ·
1 Parent(s): 527b51e

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +7 -19
app.py CHANGED
@@ -623,7 +623,6 @@ def load_ai_scenario():
623
  "Bu senaryoda temel veri temizleme, analiz ve görselleştirme adımlarını takip edin."
624
  )
625
 
626
- # Tablolara sabit veri yükleme - try-except ile hata yakalama
627
  def load_sample_data():
628
  try:
629
  # Birinci tabloyu yükle
@@ -646,23 +645,6 @@ def load_sample_data():
646
  "<table><tr><th>OrderID</th><th>Amount</th></tr><tr><td>ORD-001</td><td>120.5</td></tr></table>"
647
  ]
648
 
649
- # Manuel veri sağlayarak tabloları yükle
650
- app.load(
651
- load_sample_data,
652
- outputs=[
653
- sample_table1_label, sample_table1,
654
- sample_table2_label, sample_table2
655
- ]
656
- )
657
-
658
- # Rastgele ipucu yükle
659
- app.load(
660
- get_random_tip,
661
- outputs=[tip_output]
662
- )
663
-
664
- # Önemli: Tablolar artık varsayılan olarak görünür
665
-
666
  # Build Gradio interface
667
  with gr.Blocks(theme=gr.themes.Soft(), title="PromptMaster for Data Analytics") as app:
668
  gr.Markdown("# PromptMaster for Data Analytics")
@@ -784,7 +766,13 @@ with gr.Blocks(theme=gr.themes.Soft(), title="PromptMaster for Data Analytics")
784
  sample_table2_label, sample_table2
785
  ]
786
  )
787
-
 
 
 
 
 
 
788
  with gr.Tab("Your Profile"):
789
  profile_btn = gr.Button("View Profile")
790
  profile_output = gr.Markdown()
 
623
  "Bu senaryoda temel veri temizleme, analiz ve görselleştirme adımlarını takip edin."
624
  )
625
 
 
626
  def load_sample_data():
627
  try:
628
  # Birinci tabloyu yükle
 
645
  "<table><tr><th>OrderID</th><th>Amount</th></tr><tr><td>ORD-001</td><td>120.5</td></tr></table>"
646
  ]
647
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
648
  # Build Gradio interface
649
  with gr.Blocks(theme=gr.themes.Soft(), title="PromptMaster for Data Analytics") as app:
650
  gr.Markdown("# PromptMaster for Data Analytics")
 
766
  sample_table2_label, sample_table2
767
  ]
768
  )
769
+
770
+ # Rastgele ipucu yükle
771
+ app.load(
772
+ get_random_tip,
773
+ outputs=[tip_output]
774
+ )
775
+
776
  with gr.Tab("Your Profile"):
777
  profile_btn = gr.Button("View Profile")
778
  profile_output = gr.Markdown()