Update app.py
Browse files
app.py
CHANGED
|
@@ -755,56 +755,6 @@ with gr.Blocks(css=custom_css, title="Contact Discovery Platform", theme=gr.them
|
|
| 755 |
)
|
| 756 |
gr.HTML('</div>')
|
| 757 |
|
| 758 |
-
# Quick search buttons
|
| 759 |
-
gr.HTML('<div class="section-header">Quick Access Sample Websites</div>')
|
| 760 |
-
|
| 761 |
-
with gr.Row():
|
| 762 |
-
quick_btn1 = gr.Button("TechFlow Solutions", size="sm", elem_classes=["secondary-btn"])
|
| 763 |
-
quick_btn2 = gr.Button("GreenLeaf Consulting", size="sm", elem_classes=["secondary-btn"])
|
| 764 |
-
quick_btn3 = gr.Button("BlueSky Marketing", size="sm", elem_classes=["secondary-btn"])
|
| 765 |
-
quick_btn4 = gr.Button("Quantum Dynamics", size="sm", elem_classes=["secondary-btn"])
|
| 766 |
-
|
| 767 |
-
with gr.Row():
|
| 768 |
-
quick_btn5 = gr.Button("Stellar Logistics", size="sm", elem_classes=["secondary-btn"])
|
| 769 |
-
quick_btn6 = gr.Button("Nexus Financial", size="sm", elem_classes=["secondary-btn"])
|
| 770 |
-
quick_btn7 = gr.Button("Horizon Health", size="sm", elem_classes=["secondary-btn"])
|
| 771 |
-
quick_btn8 = gr.Button("Phoenix Manufacturing", size="sm", elem_classes=["secondary-btn"])
|
| 772 |
-
|
| 773 |
-
# Event handlers
|
| 774 |
-
search_btn.click(
|
| 775 |
-
fn=search_website_contacts,
|
| 776 |
-
inputs=[website_input, max_results],
|
| 777 |
-
outputs=[results_display, csv_output]
|
| 778 |
-
)
|
| 779 |
-
|
| 780 |
-
csv_search_btn.click(
|
| 781 |
-
fn=search_csv_websites,
|
| 782 |
-
inputs=[csv_file, csv_max_results],
|
| 783 |
-
outputs=[csv_results_display, csv_export_output]
|
| 784 |
-
)
|
| 785 |
-
|
| 786 |
-
# Quick search button handlers
|
| 787 |
-
quick_btn1.click(lambda: "techflowsolutions.com", outputs=website_input)
|
| 788 |
-
quick_btn2.click(lambda: "greenleafconsult.com", outputs=website_input)
|
| 789 |
-
quick_btn3.click(lambda: "blueskymarketing.net", outputs=website_input)
|
| 790 |
-
quick_btn4.click(lambda: "quantumdynamics.org", outputs=website_input)
|
| 791 |
-
quick_btn5.click(lambda: "stellarlogistics.biz", outputs=website_input)
|
| 792 |
-
quick_btn6.click(lambda: "nexusfinancial.pro", outputs=website_input)
|
| 793 |
-
quick_btn7.click(lambda: "horizonhealth.care", outputs=website_input)
|
| 794 |
-
quick_btn8.click(lambda: "phoenixmfg.com", outputs=website_input)
|
| 795 |
-
|
| 796 |
-
# Examples
|
| 797 |
-
gr.Examples(
|
| 798 |
-
examples=[
|
| 799 |
-
["techflowsolutions.com", 5],
|
| 800 |
-
["greenleafconsult.com", 3],
|
| 801 |
-
["blueskymarketing.net", 4],
|
| 802 |
-
["quantumdynamics.org", 6]
|
| 803 |
-
],
|
| 804 |
-
inputs=[website_input, max_results],
|
| 805 |
-
label="Sample Searches"
|
| 806 |
-
)
|
| 807 |
-
|
| 808 |
# Footer
|
| 809 |
gr.HTML("""
|
| 810 |
<div style="text-align: center; padding: 30px 20px; background: linear-gradient(135deg, #64748b 0%, #475569 100%); color: white; border-radius: 15px; margin-top: 30px;">
|
|
|
|
| 755 |
)
|
| 756 |
gr.HTML('</div>')
|
| 757 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 758 |
# Footer
|
| 759 |
gr.HTML("""
|
| 760 |
<div style="text-align: center; padding: 30px 20px; background: linear-gradient(135deg, #64748b 0%, #475569 100%); color: white; border-radius: 15px; margin-top: 30px;">
|