shukdevdattaEX commited on
Commit
394e47c
Β·
verified Β·
1 Parent(s): 22695ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -18
app.py CHANGED
@@ -774,19 +774,6 @@ Provide a detailed, data-driven answer with:
774
  f.write(html_content)
775
  return filename, f"βœ… Comprehensive HTML report generated! File: {filename}"
776
 
777
- elif format_type == "PDF Ready HTML":
778
- html_content = self.generate_pdf_ready_report(analysis_text, data_summary, file_name)
779
- filename = f"{file_base_name}_pdf_ready_{timestamp}.html"
780
-
781
- with open(filename, 'w', encoding='utf-8') as f:
782
- f.write(html_content)
783
- return filename, f"βœ… PDF-ready report generated! Open in browser and print as PDF. File: {filename}"
784
-
785
- elif format_type == "Excel":
786
- filename = f"{file_base_name}_analysis_report_{timestamp}.xlsx"
787
- self.generate_excel_report(analysis_text, data_summary, filename)
788
- return filename, f"βœ… Excel report with data and analysis generated! File: {filename}"
789
-
790
  else: # Markdown
791
  report_content = self.generate_markdown_report(analysis_text, data_summary, file_name)
792
  filename = f"{file_base_name}_analysis_report_{timestamp}.md"
@@ -1220,8 +1207,8 @@ Provide a detailed, data-driven answer with:
1220
  </div>
1221
  <div class="footer-links">
1222
  <a href="https://wa.me/8801719296601"><i class="fab fa-whatsapp"></i> WhatsApp Support</a>
1223
- <a href="mailto:support@smartanalyzer.com"><i class="fas fa-envelope"></i> Email Support</a>
1224
- <a href="#"><i class="fas fa-globe"></i> Visit Website</a>
1225
  </div>
1226
  <p style="margin-top: 15px; font-size: 0.9em; color: #6c757d;">
1227
  Β© 2025 Smart Data Analyzer Pro. Professional data analysis made simple.
@@ -1296,7 +1283,7 @@ text---
1296
  ## πŸ“ž Support & Contact
1297
 
1298
  - **WhatsApp Support:** +8801719296601
1299
- - **Email:** support@smartanalyzer.com
1300
  - **Documentation:** Available upon request
1301
 
1302
  ---
@@ -1710,7 +1697,8 @@ with gr.Blocks(
1710
  with gr.Tab("πŸ“ˆ Visualizations & Charts"):
1711
  gr.Markdown("### 🎨 Interactive Data Visualizations")
1712
  charts_display = gr.HTML(
1713
- value="<div style='text-align: center; padding: 40px; color: #666;'>πŸ“Š Charts will appear here after analysis...</div>"
 
1714
  )
1715
 
1716
  with gr.Tab("πŸ” Technical Summary"):
@@ -1728,7 +1716,7 @@ with gr.Blocks(
1728
 
1729
  with gr.Row():
1730
  format_choice = gr.Radio(
1731
- choices=["HTML", "PDF Ready HTML", "Excel", "Markdown"],
1732
  value="HTML",
1733
  label="πŸ“„ Report Format",
1734
  info="Choose your preferred export format"
 
774
  f.write(html_content)
775
  return filename, f"βœ… Comprehensive HTML report generated! File: {filename}"
776
 
 
 
 
 
 
 
 
 
 
 
 
 
 
777
  else: # Markdown
778
  report_content = self.generate_markdown_report(analysis_text, data_summary, file_name)
779
  filename = f"{file_base_name}_analysis_report_{timestamp}.md"
 
1207
  </div>
1208
  <div class="footer-links">
1209
  <a href="https://wa.me/8801719296601"><i class="fab fa-whatsapp"></i> WhatsApp Support</a>
1210
+ <a href="https://mail.google.com/mail/?view=cm&fs=1&to=shukdevdatta@gmail.com" target="_blank"><i class="fas fa-envelope"></i> Email Support</a>
1211
+ <a href="https://huggingface.co/shukdevdattaEX"><i class="fas fa-globe"></i> Visit Website</a>
1212
  </div>
1213
  <p style="margin-top: 15px; font-size: 0.9em; color: #6c757d;">
1214
  Β© 2025 Smart Data Analyzer Pro. Professional data analysis made simple.
 
1283
  ## πŸ“ž Support & Contact
1284
 
1285
  - **WhatsApp Support:** +8801719296601
1286
+ - **Email:** shukdevdatta@gmail.com
1287
  - **Documentation:** Available upon request
1288
 
1289
  ---
 
1697
  with gr.Tab("πŸ“ˆ Visualizations & Charts"):
1698
  gr.Markdown("### 🎨 Interactive Data Visualizations")
1699
  charts_display = gr.HTML(
1700
+ value="<div style='text-align: center; padding: 40px; color: #666;'>πŸ“Š Charts will appear here after analysis...</div>",
1701
+ visible=False
1702
  )
1703
 
1704
  with gr.Tab("πŸ” Technical Summary"):
 
1716
 
1717
  with gr.Row():
1718
  format_choice = gr.Radio(
1719
+ choices=["HTML", "Markdown"],
1720
  value="HTML",
1721
  label="πŸ“„ Report Format",
1722
  info="Choose your preferred export format"