# Jay's Mobile Wash - Mock UI Preview (Visual Only - No Backend) # Current Date import gradio as gr import json import random from datetime import datetime, timedelta class MockUIPreview: """Mock UI preview that looks exactly like the real system""" def __init__(self): """Initialize mock UI with fake data""" # Mock business data (your real info for display) self.business_info = { 'name': "Jay's Mobile Wash", 'phone': '562-228-9429', 'twilio_phone': '+18557059842', 'email': 'jay@jaysmobilewash.com', 'website': 'jaysmobilewash.com', 'instagram': '@jayswaxandwash', 'service_area': 'Los Angeles, Orange County, and the IE', 'hours': '6 AM to 5 PM PST daily', 'owner': 'jjmandog' } # Mock system status self.system_powered_on = True self.system_uptime = "2h 15m" # Mock analytics data self.mock_analytics = { 'sms_total': 142, 'calls_total': 38, 'training_sessions': 25, 'performance_score': 87, 'response_rate': 94.2, 'avg_call_duration': 125 } def create_mock_ui(self): """Create the complete mock UI""" with gr.Blocks( title="πβ‘ Jay's Mobile Wash - COMPLETE AI System", theme=gr.themes.Soft(), css=""" .main-header { background: linear-gradient(135deg, #1e3a8a, #3b82f6); } .power-control { background: linear-gradient(135deg, #059669, #10b981); } .feature-card { background: white; border-left: 6px solid #3b82f6; } .status-good { background: #d1fae5; border-color: #10b981; } .status-warning { background: #fef3c7; border-color: #f59e0b; } """ ) as mock_app: # MAIN HEADER (Exact replica) gr.HTML(f""" <div class="main-header" style="color: white; padding: 3rem; border-radius: 25px; text-align: center; margin-bottom: 2rem;"> <h1 style="margin: 0; font-size: 3rem;">πβ‘ {self.business_info['name']}</h1> <h2 style="margin: 1rem 0; font-size: 1.8rem; opacity: 0.9;">COMPLETE AI Training & Management System</h2> <p style="margin: 1rem 0; font-size: 1.2rem;">π₯ ALL FEATURES IMPLEMENTED β’ Real Backend β’ Live Operations β’ Zero GPU</p> <div style="display: flex; justify-content: center; gap: 2rem; margin-top: 2rem; flex-wrap: wrap;"> <div style="background: rgba(255,255,255,0.15); padding: 1rem; border-radius: 10px;"> <strong>π€ Owner: {self.business_info['owner']}</strong> </div> <div style="background: rgba(255,255,255,0.15); padding: 1rem; border-radius: 10px;"> <strong>π Business: {self.business_info['phone']}</strong> </div> <div style="background: rgba(255,255,255,0.15); padding: 1rem; border-radius: 10px;"> <strong>π€ AI Phone: {self.business_info['twilio_phone']}</strong> </div> <div style="background: rgba(255,255,255,0.15); padding: 1rem; border-radius: 10px;"> <strong>π Service: {self.business_info['service_area']}</strong> </div> <div style="background: {'#10b981' if self.system_powered_on else '#ef4444'}; padding: 1rem; border-radius: 10px;"> <strong>{'π’ AI LIVE' if self.system_powered_on else 'π΄ AI OFF'}</strong> </div> </div> <div style="background: rgba(255,255,255,0.1); padding: 1rem; border-radius: 15px; margin-top: 2rem;"> <small>π€ Hugging Face Space: huggingface.co/spaces/jjmandog/jayscallcenter | Date: 2025-06-13 08:32:47 | COMPLETE IMPLEMENTATION</small> </div> </div> """) # SYSTEM STATUS OVERVIEW (Exact replica) gr.HTML(f""" <div style="background: #f0f9ff; border: 2px solid #3b82f6; border-radius: 15px; padding: 2rem; margin: 2rem 0;"> <h3 style="color: #1e3a8a; margin: 0 0 1rem 0;">π― COMPLETE System Status</h3> <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem;"> <div style="background: white; padding: 1rem; border-radius: 10px; text-align: center; border-left: 4px solid #10b981;"> <div style="font-size: 2rem;">π</div> <strong>Twilio Integration</strong><br> <small>π’ Connected</small> </div> <div style="background: white; padding: 1rem; border-radius: 10px; text-align: center; border-left: 4px solid #10b981;"> <div style="font-size: 2rem;">π€</div> <strong>Voice Processing</strong><br> <small>π’ Ready</small> </div> <div style="background: white; padding: 1rem; border-radius: 10px; text-align: center; border-left: 4px solid #10b981;"> <div style="font-size: 2rem;">π</div> <strong>AI Training</strong><br> <small>π’ 4 Methods Ready</small> </div> <div style="background: white; padding: 1rem; border-radius: 10px; text-align: center; border-left: 4px solid #10b981;"> <div style="font-size: 2rem;">π</div> <strong>Analytics</strong><br> <small>π’ Live Dashboard</small> </div> <div style="background: white; padding: 1rem; border-radius: 10px; text-align: center; border-left: 4px solid #10b981;"> <div style="font-size: 2rem;">βοΈ</div> <strong>Backend Control</strong><br> <small>π’ Full Access</small> </div> <div style="background: white; padding: 1rem; border-radius: 10px; text-align: center; border-left: 4px solid #10b981;"> <div style="font-size: 2rem;">π</div> <strong>Webhooks</strong><br> <small>π’ Live Integration</small> </div> </div> <div style="background: rgba(59, 130, 246, 0.1); padding: 1rem; border-radius: 10px; margin-top: 1rem; text-align: center;"> <strong style="color: #1e3a8a;"> System Uptime: {self.system_uptime} | Components: 6/6 Active | Zero GPU: Enabled </strong> </div> </div> """) # MASTER POWER CONTROL (Exact replica) gr.HTML(""" <div class="power-control" style="color: white; padding: 2rem; border-radius: 20px; text-align: center; margin: 2rem 0;"> <h2 style="margin: 0 0 1rem 0;">π΄π’ Master AI System Power</h2> <p style="margin: 0; opacity: 0.9;">Control your complete AI system with live SMS, Voice, Training, and Analytics</p> </div> """) # Power toggle power_toggle = gr.Checkbox( label="π΄π’ COMPLETE AI System Power (SMS Bots, Voice Bots, Training, Analytics, Backend)", value=self.system_powered_on, info="Red = All AI Off | Green = Complete System Live β’ Includes SMS, Voice, Training, Analytics" ) power_status_display = gr.HTML() # MAIN SYSTEM INTERFACE TABS with gr.Tabs(): # π― SYSTEM OVERVIEW TAB with gr.Tab("π― System Overview"): gr.HTML(f""" <div class="feature-card" style="padding: 2rem; border-radius: 15px; margin: 1rem 0;"> <h3 style="color: #1e3a8a; margin: 0 0 1rem 0;">π― Complete System Overview</h3> <p>Your complete AI system for {self.business_info['name']} is now fully implemented and ready for live operation.</p> <h4 style="color: #374151; margin: 1.5rem 0 1rem 0;">π₯ Implemented Features:</h4> <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem;"> <div style="background: #f8fafc; padding: 1rem; border-radius: 8px; border-left: 4px solid #dc2626;"> <strong>π± Live SMS Bot</strong><br> <small>Real Twilio integration on {self.business_info['twilio_phone']}</small><br> <small>Responds to customer texts with your business knowledge</small> </div> <div style="background: #f8fafc; padding: 1rem; border-radius: 8px; border-left: 4px solid #ea580c;"> <strong>π Live Voice Bot</strong><br> <small>AI answers calls, forwards to {self.business_info['phone']}</small><br> <small>Voice recognition & text-to-speech enabled</small> </div> <div style="background: #f8fafc; padding: 1rem; border-radius: 8px; border-left: 4px solid #059669;"> <strong>π 4 AI Training Methods</strong><br> <small>Customer Simulation, AI Questioning, Conversation Practice, Voice Training</small><br> <small>Zero GPU acceleration for fast training</small> </div> <div style="background: #f8fafc; padding: 1rem; border-radius: 8px; border-left: 4px solid #0891b2;"> <strong>π Real Analytics Dashboard</strong><br> <small>Live SMS/Call analytics, training progress</small><br> <small>Business intelligence and performance monitoring</small> </div> <div style="background: #f8fafc; padding: 1rem; border-radius: 8px; border-left: 4px solid #7c3aed;"> <strong>βοΈ Complete Backend Control</strong><br> <small>Real settings control, pricing updates, business info</small><br> <small>Twilio configuration, system management</small> </div> <div style="background: #f8fafc; padding: 1rem; border-radius: 8px; border-left: 4px solid #1e3a8a;"> <strong>π Live Integration</strong><br> <small>Webhook server, real-time responses, database logging</small><br> <small>Security, monitoring, performance tracking</small> </div> </div> <div style="background: #10b981; color: white; padding: 1.5rem; border-radius: 10px; margin-top: 2rem; text-align: center;"> <h4 style="margin: 0 0 1rem 0;">β Your AI System is COMPLETE and Ready!</h4> <p style="margin: 0;">All features implemented, tested, and configured with your real business information.</p> </div> </div> """) # π AI TRAINING TAB with gr.Tab("π AI Training"): self._create_training_interface() # π ANALYTICS TAB with gr.Tab("π Analytics"): self._create_analytics_interface() # βοΈ SETTINGS TAB with gr.Tab("βοΈ Settings"): self._create_settings_interface() # π§ SYSTEM STATUS TAB with gr.Tab("π§ System Status"): self._create_system_status_interface() # MOCK FUNCTIONS FOR INTERACTIVITY def mock_power_toggle(power_state): """Mock power toggle response""" if power_state: return f""" <div style="background: #10b981; color: white; padding: 2rem; border-radius: 15px; text-align: center;"> <h3 style="margin: 0 0 1rem 0;">π’ COMPLETE AI SYSTEM IS LIVE!</h3> <p style="margin: 0 0 1rem 0;">Complete AI system powered on successfully!</p> <div style="background: rgba(255,255,255,0.1); padding: 1rem; border-radius: 10px; margin-top: 1rem;"> <strong>π₯ Active Features:</strong><br> β’ π± Live SMS Bot on {self.business_info['twilio_phone']}<br> β’ π Live Voice Bot with forwarding to {self.business_info['phone']}<br> β’ π€ AI Conversation Engine with your business knowledge<br> β’ π€ Voice Recognition & Text-to-Speech<br> β’ π 4 AI Training Methods<br> β’ π Real-time Analytics Dashboard<br> β’ βοΈ Complete Backend Settings Control<br> β’ π Live Webhook Integration </div> <div style="background: rgba(255,255,255,0.1); padding: 1rem; border-radius: 10px; margin-top: 1rem;"> <strong>π’ Your Business:</strong> {self.business_info['name']}<br> <strong>π Business Phone:</strong> {self.business_info['phone']}<br> <strong>π€ AI Phone:</strong> {self.business_info['twilio_phone']}<br> <strong>π Service Area:</strong> {self.business_info['service_area']} </div> </div> """ else: return f""" <div style="background: #ef4444; color: white; padding: 2rem; border-radius: 15px; text-align: center;"> <h3 style="margin: 0 0 1rem 0;">π΄ COMPLETE AI SYSTEM POWERED OFF</h3> <p style="margin: 0 0 1rem 0;">Complete AI system powered off (monitoring continues)</p> <p style="margin: 0;"><strong>Note:</strong> Webhook server and system monitoring continue running</p> </div> """ # Connect power toggle power_toggle.change( fn=mock_power_toggle, inputs=[power_toggle], outputs=[power_status_display] ) # FOOTER (Exact replica) gr.HTML(f""" <div style="text-align: center; padding: 3rem; margin-top: 4rem; border-top: 2px solid #e5e7eb; color: #6b7280;"> <h3 style="color: #1e3a8a;">πβ‘ {self.business_info['name']} - COMPLETE AI System</h3> <p><strong>π₯ ALL FEATURES IMPLEMENTED β’ Real Backend Control β’ Live Operations β’ Zero GPU Powered</strong></p> <div style="display: flex; justify-content: center; gap: 2rem; margin: 1rem 0; flex-wrap: wrap;"> <span>π€ Owner: {self.business_info['owner']}</span> <span>π Business: {self.business_info['phone']}</span> <span>π€ AI: {self.business_info['twilio_phone']}</span> <span>π {self.business_info['service_area']}</span> <span>π€ HF Spaces</span> </div> <p><small>π Complete Implementation Date: 2025-06-13 08:32:47 | All Features Active</small></p> <p><small>Features: Live SMS/Voice Bots β’ 4 Training Methods β’ Real Analytics β’ Backend Control β’ Webhook Integration β’ Voice Processing β’ Database Logging</small></p> </div> """) return mock_app def _create_training_interface(self): """Create mock training interface""" # Training system header gr.HTML(f""" <div style="background: linear-gradient(135deg, #7c3aed, #a855f7); color: white; padding: 3rem; border-radius: 25px; text-align: center; margin-bottom: 2rem;"> <h1 style="margin: 0; font-size: 3rem;">π Complete AI Training System</h1> <h2 style="margin: 1rem 0; font-size: 1.8rem; opacity: 0.9;">{self.business_info['name']} - Professional Training</h2> <p style="margin: 1rem 0; font-size: 1.2rem;">4 Training Methods β’ Zero GPU Acceleration β’ Real Business Knowledge</p> </div> """) with gr.Tabs(): # Customer Simulation Training with gr.Tab("π Customer Simulation"): gr.HTML(""" <div style="background: #fef3c7; border: 2px solid #f59e0b; border-radius: 15px; padding: 2rem; margin: 2rem 0;"> <h3 style="color: #92400e; margin: 0 0 1rem 0;">π Customer Simulation Training</h3> <p style="color: #92400e; margin: 0 0 1rem 0;"> <strong>How it works:</strong> You act like different types of customers, and the AI learns how Jay would respond. </p> <p style="color: #92400e; margin: 0;"> <strong>Difficulty:</strong> Beginner | <strong>Time:</strong> 15-30 minutes | <strong>Goal:</strong> Teach natural customer responses </p> </div> """) simulation_scenario = gr.Dropdown( choices=["Price Shopping Customer", "Urgent Booking Customer", "Quality-Focused Customer", "First-Time Customer"], label="π Choose Customer Scenario", value="Price Shopping Customer" ) customer_message = gr.Textbox( label="π¬ Your Customer Message (Act like the customer)", placeholder="Example: Hi, how much do you charge for a car wash?", lines=3 ) generate_response_btn = gr.Button("π€ Generate AI Response", variant="primary") ai_response_output = gr.Textbox( label="π€ AI Response (What the AI would say to this customer)", value="Hi! Thanks for reaching out to Jay's Mobile Wash! For a basic car wash, we charge $60 for cars and $70 for SUVs. This includes exterior wash, dry, and basic interior cleaning. Would you like to hear about our other packages?", interactive=False, lines=4 ) your_feedback = gr.Textbox( label="βοΈ Your Expert Feedback (How should Jay actually respond?)", placeholder="Example: The AI should also mention our premium wax service and ask about their location...", lines=4 ) response_rating = gr.Slider( minimum=1, maximum=10, value=8, step=1, label="β Rate AI Response (1=Poor, 10=Perfect)" ) save_simulation_btn = gr.Button("πΎ Save Training Data", variant="secondary") def mock_generate_ai_response(customer_msg, scenario): responses = [ f"Hi! Thanks for contacting Jay's Mobile Wash! For {scenario.lower()}, I'd recommend our premium package at $130 for cars. This includes complete wash, wax, and interior detail. What type of vehicle do you have?", f"Hello! I'm Jay's AI assistant. Based on your message about {customer_msg[:30]}..., I can help you with pricing and scheduling. Our service area covers {self.business_info['service_area']}. When would you like service?", f"Hi there! Thanks for reaching out to {self.business_info['name']}! I can see you're interested in {scenario.lower()}. Our hours are {self.business_info['hours']}. How can I help you today?" ] return random.choice(responses) def mock_save_training(): return """ <div style="background: #10b981; color: white; padding: 1.5rem; border-radius: 10px; text-align: center;"> <h4 style="margin: 0 0 1rem 0;">β Training Data Saved Successfully!</h4> <p style="margin: 0;">Your feedback will help improve AI responses for similar customer interactions.</p> </div> """ generate_response_btn.click( fn=mock_generate_ai_response, inputs=[customer_message, simulation_scenario], outputs=[ai_response_output] ) save_simulation_btn.click( fn=mock_save_training, outputs=[gr.HTML()] ) # AI Questioning Training with gr.Tab("π€ AI Questioning"): gr.HTML(""" <div style="background: #e0f2fe; border: 2px solid #0891b2; border-radius: 15px; padding: 2rem; margin: 2rem 0;"> <h3 style="color: #164e63; margin: 0 0 1rem 0;">π€ AI Questioning Session</h3> <p style="color: #164e63; margin: 0 0 1rem 0;"> <strong>How it works:</strong> The AI asks you business questions, and learns from your expert answers. </p> <p style="color: #164e63; margin: 0;"> <strong>Difficulty:</strong> Intermediate | <strong>Time:</strong> 20-40 minutes | <strong>Goal:</strong> Extract business expertise </p> </div> """) questioning_topic = gr.Dropdown( choices=["Service Differentiation", "Customer Service Excellence", "Booking and Scheduling", "Technical Knowledge"], label="π Choose Learning Topic", value="Service Differentiation" ) start_questioning_btn = gr.Button("π― Start AI Questioning Session", variant="primary") ai_question = gr.HTML(""" <div style="background: #0891b2; color: white; padding: 2rem; border-radius: 15px; margin: 1rem 0;"> <h4 style="margin: 0 0 1rem 0;">π€ AI Question 1 of 5</h4> <p style="margin: 0; font-size: 1.2rem;">What makes Jay's Mobile Wash different from your competitors?</p> </div> """) expert_answer = gr.Textbox( label="π§ Your Expert Answer (Share your business knowledge)", placeholder="Share your professional experience and knowledge...", lines=5 ) next_question_btn = gr.Button("β‘οΈ Next Question", variant="secondary") def mock_next_question(): questions = [ "How do you handle difficult or unhappy customers?", "What's your process when a customer isn't satisfied?", "What information do you need to provide an accurate quote?", "How do you handle different paint types or vehicle conditions?" ] return f""" <div style="background: #0891b2; color: white; padding: 2rem; border-radius: 15px; margin: 1rem 0;"> <h4 style="margin: 0 0 1rem 0;">π€ AI Question {random.randint(2,5)} of 5</h4> <p style="margin: 0; font-size: 1.2rem;">{random.choice(questions)}</p> </div> """ next_question_btn.click( fn=mock_next_question, outputs=[ai_question] ) # Conversation Practice with gr.Tab("π¬ Conversation Practice"): gr.HTML(""" <div style="background: #f0fdf4; border: 2px solid #059669; border-radius: 15px; padding: 2rem; margin: 2rem 0;"> <h3 style="color: #065f46; margin: 0 0 1rem 0;">π¬ Conversation Practice</h3> <p style="color: #065f46; margin: 0 0 1rem 0;"> <strong>How it works:</strong> Practice realistic customer conversations with back-and-forth dialogue. </p> <p style="color: #065f46; margin: 0;"> <strong>Difficulty:</strong> Advanced | <strong>Time:</strong> 30-45 minutes | <strong>Goal:</strong> Master conversation flow </p> </div> """) conversation_type = gr.Dropdown( choices=["Phone Call Simulation", "SMS Conversation Chain", "Objection Handling Practice"], label="π Choose Conversation Type", value="Phone Call Simulation" ) start_conversation_btn = gr.Button("π¬ Start Conversation Practice", variant="primary") conversation_history = gr.HTML(""" <div style="background: white; border-radius: 15px; padding: 1rem; margin: 1rem 0; max-height: 400px; overflow-y: auto;"> <h4 style="color: #059669; margin: 0 0 1rem 0;">π¬ Conversation Practice</h4> <div style="background: #f0f9ff; padding: 1rem; border-radius: 10px; margin: 0.5rem 0; border-left: 4px solid #0891b2;"> <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem;"> <strong style="color: #0891b2;">Customer</strong> <small style="color: #6b7280;">14:32</small> </div> <p style="margin: 0; color: #374151;">Hi, I'm interested in getting my car detailed. Can you tell me about your services?</p> </div> <div style="background: #f0fdf4; padding: 1rem; border-radius: 10px; margin: 0.5rem 0; border-left: 4px solid #059669;"> <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem;"> <strong style="color: #059669;">Jay (You)</strong> <small style="color: #6b7280;">14:33</small> </div> <p style="margin: 0; color: #374151;">Hi! Thanks for reaching out to Jay's Mobile Wash! We offer three main packages...</p> </div> </div> """) your_message = gr.Textbox( label="π¬ Your Message (Continue the conversation)", placeholder="Type your response as Jay...", lines=3 ) send_message_btn = gr.Button("π€ Send Message", variant="secondary") # Voice Scenario Training with gr.Tab("π€ Voice Scenario Training"): gr.HTML(""" <div style="background: #fdf2f8; border: 2px solid #ec4899; border-radius: 15px; padding: 2rem; margin: 2rem 0;"> <h3 style="color: #831843; margin: 0 0 1rem 0;">π€ Voice Scenario Training</h3> <p style="color: #831843; margin: 0 0 1rem 0;"> <strong>How it works:</strong> Train with real voice input using microphone and Zero GPU processing. </p> <p style="color: #831843; margin: 0;"> <strong>Difficulty:</strong> Expert | <strong>Time:</strong> 20-45 minutes | <strong>Equipment:</strong> Microphone required </p> </div> """) voice_scenario = gr.Dropdown( choices=["Phone Call Handling", "Difficult Customer", "Technical Questions", "Booking Process"], label="π€ Choose Voice Scenario", value="Phone Call Handling" ) audio_input = gr.Audio( label="π€ Record Your Voice (Practice scenario)", type="numpy" ) process_voice_btn = gr.Button("π Process Voice Input", variant="primary") voice_analysis = gr.HTML(""" <div style="background: #f8fafc; padding: 1rem; border-radius: 10px; margin: 1rem 0;"> <h4 style="color: #374151;">π€ Voice Analysis Results</h4> <p><strong>Transcription:</strong> "Hi, thank you for calling Jay's Mobile Wash, how can I help you today?"</p> <p><strong>Confidence:</strong> 94.2%</p> <p><strong>Speaking Speed:</strong> Natural (145 WPM)</p> <p><strong>Tone Analysis:</strong> Professional, Friendly</p> </div> """) ai_voice_response = gr.Audio( label="π AI Voice Response", value=None ) def _create_analytics_interface(self): """Create mock analytics interface""" # Analytics header gr.HTML(f""" <div style="background: linear-gradient(135deg, #ea580c, #f97316); color: white; padding: 3rem; border-radius: 25px; text-align: center; margin-bottom: 2rem;"> <h1 style="margin: 0; font-size: 3rem;">π Analytics Dashboard</h1> <h2 style="margin: 1rem 0; font-size: 1.8rem; opacity: 0.9;">{self.business_info['name']} - Performance Intelligence</h2> <p style="margin: 1rem 0; font-size: 1.2rem;">Live Data β’ Performance Metrics β’ AI Training Analytics</p> </div> """) # Refresh controls with gr.Row(): refresh_btn = gr.Button("π Refresh All Data", variant="primary") last_updated = gr.HTML(f""" <div style="background: #10b981; color: white; padding: 1rem; border-radius: 10px; text-align: center;"> <strong>π Data refreshed at {datetime.now().strftime('%H:%M:%S')} PST</strong> </div> """) with gr.Tabs(): # System Overview with gr.Tab("π― System Overview"): with gr.Row(): with gr.Column(scale=1): gr.HTML(f""" <div style="background: #10b981; color: white; padding: 2rem; border-radius: 15px; text-align: center;"> <h3 style="margin: 0 0 1rem 0;">π― System Performance Score</h3> <div style="font-size: 3rem; font-weight: bold; margin: 1rem 0;">{self.mock_analytics['performance_score']}%</div> <p style="margin: 0; opacity: 0.9;">SMS, Calls & AI Training performance</p> </div> """) with gr.Column(scale=1): gr.HTML(""" <div style="background: #10b981; color: white; padding: 2rem; border-radius: 15px; text-align: center;"> <h3 style="margin: 0 0 1rem 0;">π System Health</h3> <div style="font-size: 3rem; margin: 1rem 0;">π</div> <p style="margin: 0; opacity: 0.9; text-transform: capitalize;">Healthy</p> </div> """) with gr.Row(): gr.HTML(f""" <div style="background: #3b82f6; color: white; padding: 2rem; border-radius: 15px; text-align: center;"> <h3 style="margin: 0 0 1rem 0;">π Total Interactions (30 days)</h3> <div style="font-size: 3rem; font-weight: bold; margin: 1rem 0;">{self.mock_analytics['sms_total'] + self.mock_analytics['calls_total']}</div> <div style="display: flex; justify-content: space-around; margin-top: 1rem;"> <div>π± SMS: {self.mock_analytics['sms_total']}</div> <div>π Calls: {self.mock_analytics['calls_total']}</div> </div> </div> """) gr.HTML(f""" <div style="background: #7c3aed; color: white; padding: 2rem; border-radius: 15px; text-align: center;"> <h3 style="margin: 0 0 1rem 0;">β‘ Live System Status</h3> <div style="font-size: 2rem; font-weight: bold; margin: 1rem 0;">12</div> <p style="margin: 0.5rem 0;">Interactions in last 24 hours</p> <small style="opacity: 0.8;">Last activity: 2025-06-13 08:25:32</small> </div> """) # SMS Analytics with gr.Tab("π± SMS Analytics"): with gr.Row(): gr.HTML(f""" <div style="background: #059669; color: white; padding: 2rem; border-radius: 15px; text-align: center;"> <h3 style="margin: 0 0 1rem 0;">π± SMS Volume (30 days)</h3> <div style="font-size: 3rem; font-weight: bold; margin: 1rem 0;">{self.mock_analytics['sms_total']}</div> <p style="margin: 0; opacity: 0.9;">Total SMS interactions</p> </div> """) gr.HTML(f""" <div style="background: #0891b2; color: white; padding: 2rem; border-radius: 15px; text-align: center;"> <h3 style="margin: 0 0 1rem 0;">π Response Rate</h3> <div style="font-size: 3rem; font-weight: bold; margin: 1rem 0;">{self.mock_analytics['response_rate']}%</div> <p style="margin: 0; opacity: 0.9;">Customer response rate</p> </div> """) gr.HTML(""" <div style="background: white; padding: 2rem; border-radius: 15px; margin: 1rem 0; border: 2px solid #e5e7eb;"> <h4 style="color: #374151; margin: 0 0 1rem 0;">π Top Customer Keywords (Last 7 days)</h4> <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem;"> <div style="background: #f0f9ff; padding: 1rem; border-radius: 8px;"> <strong>price</strong> - 34 mentions </div> <div style="background: #f0f9ff; padding: 1rem; border-radius: 8px;"> <strong>schedule</strong> - 28 mentions </div> <div style="background: #f0f9ff; padding: 1rem; border-radius: 8px;"> <strong>wash</strong> - 45 mentions </div> <div style="background: #f0f9ff; padding: 1rem; border-radius: 8px;"> <strong>detail</strong> - 19 mentions </div> </div> </div> """) # Call Analytics with gr.Tab("π Call Analytics"): with gr.Row(): gr.HTML(f""" <div style="background: #dc2626; color: white; padding: 2rem; border-radius: 15px; text-align: center;"> <h3 style="margin: 0 0 1rem 0;">π Call Volume (30 days)</h3> <div style="font-size: 3rem; font-weight: bold; margin: 1rem 0;">{self.mock_analytics['calls_total']}</div> <p style="margin: 0; opacity: 0.9;">Total call interactions</p> </div> """) gr.HTML(f""" <div style="background: #ea580c; color: white; padding: 2rem; border-radius: 15px; text-align: center;"> <h3 style="margin: 0 0 1rem 0;">β±οΈ Avg Duration</h3> <div style="font-size: 3rem; font-weight: bold; margin: 1rem 0;">{self.mock_analytics['avg_call_duration']}s</div> <p style="margin: 0; opacity: 0.9;">Average call length</p> </div> """) gr.HTML(""" <div style="background: white; padding: 2rem; border-radius: 15px; margin: 1rem 0; border: 2px solid #e5e7eb;"> <h4 style="color: #374151; margin: 0 0 1rem 0;">π Call Outcomes (Last 30 days)</h4> <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem;"> <div style="background: #d1fae5; padding: 1rem; border-radius: 8px; border-left: 4px solid #10b981;"> <strong>Completed</strong><br> <span style="font-size: 1.5rem;">28 calls</span> </div> <div style="background: #fef3c7; padding: 1rem; border-radius: 8px; border-left: 4px solid #f59e0b;"> <strong>Transferred</strong><br> <span style="font-size: 1.5rem;">8 calls</span> </div> <div style="background: #fee2e2; padding: 1rem; border-radius: 8px; border-left: 4px solid #ef4444;"> <strong>No Answer</strong><br> <span style="font-size: 1.5rem;">2 calls</span> </div> </div> </div> """) # AI Training Analytics with gr.Tab("π AI Training Analytics"): gr.HTML(""" <div style="background: #fef3c7; border: 2px solid #f59e0b; border-radius: 15px; padding: 2rem; margin: 2rem 0;"> <h3 style="color: #92400e; margin: 0 0 1rem 0;">π§ AI Training Intelligence</h3> <p style="color: #92400e; margin: 0 0 1rem 0;"> <strong>Training Purpose:</strong> These sessions teach your SMS and Voice bots how to respond like YOU would. </p> <p style="color: #92400e; margin: 0;"> Each training method improves bot intelligence, conversation skills, and business knowledge. </p> </div> """) with gr.Row(): gr.HTML(f""" <div style="background: #7c3aed; color: white; padding: 2rem; border-radius: 15px; text-align: center;"> <h3 style="margin: 0 0 1rem 0;">π Training Sessions</h3> <div style="font-size: 3rem; font-weight: bold; margin: 1rem 0;">{self.mock_analytics['training_sessions']}</div> <p style="margin: 0; opacity: 0.9;">Total sessions completed</p> </div> """) gr.HTML(""" <div style="background: #0891b2; color: white; padding: 2rem; border-radius: 15px; text-align: center;"> <h3 style="margin: 0 0 1rem 0;">β Training Quality</h3> <div style="font-size: 3rem; font-weight: bold; margin: 1rem 0;">8.4/10</div> <p style="margin: 0; opacity: 0.9;">Average quality rating</p> </div> """) gr.HTML(""" <div style="background: white; padding: 2rem; border-radius: 15px; margin: 1rem 0; border: 2px solid #e5e7eb;"> <h4 style="color: #374151; margin: 0 0 1rem 0;">π Training Methods Performance</h4> <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem;"> <div style="background: #fef3c7; padding: 1rem; border-radius: 8px; border-left: 4px solid #f59e0b;"> <strong>π Customer Simulation</strong><br> <span>8 sessions β’ 8.7/10 rating</span> </div> <div style="background: #e0f2fe; padding: 1rem; border-radius: 8px; border-left: 4px solid #0891b2;"> <strong>π€ AI Questioning</strong><br> <span>6 sessions β’ 8.2/10 rating</span> </div> <div style="background: #f0fdf4; padding: 1rem; border-radius: 8px; border-left: 4px solid #059669;"> <strong>π¬ Conversation Practice</strong><br> <span>7 sessions β’ 8.5/10 rating</span> </div> <div style="background: #fdf2f8; padding: 1rem; border-radius: 8px; border-left: 4px solid #ec4899;"> <strong>π€ Voice Training</strong><br> <span>4 sessions β’ 8.1/10 rating</span> </div> </div> </div> """) def mock_refresh(): return f""" <div style="background: #10b981; color: white; padding: 1rem; border-radius: 10px; text-align: center;"> <strong>π Data refreshed at {datetime.now().strftime('%H:%M:%S')} PST</strong> </div> """ refresh_btn.click(fn=mock_refresh, outputs=[last_updated]) def _create_settings_interface(self): """Create mock settings interface""" # Settings header gr.HTML(f""" <div style="background: linear-gradient(135deg, #059669, #10b981); color: white; padding: 3rem; border-radius: 25px; text-align: center; margin-bottom: 2rem;"> <h1 style="margin: 0; font-size: 3rem;">βοΈ Complete Settings & Backend Control</h1> <h2 style="margin: 1rem 0; font-size: 1.8rem; opacity: 0.9;">Real System Configuration β’ Live Control β’ Backend Access</h2> <p style="margin: 1rem 0; font-size: 1.2rem;">Configure your AI system with real backend control and live updates</p> </div> """) with gr.Tabs(): # Business Information with gr.Tab("π’ Business Information"): gr.HTML(""" <div style="background: #f0fdf4; border: 2px solid #059669; border-radius: 15px; padding: 2rem; margin: 2rem 0;"> <h3 style="color: #065f46; margin: 0 0 1rem 0;">π’ Business Information Settings</h3> <p style="color: #065f46; margin: 0;"> Update your business details that customers see in AI responses. Changes are applied immediately to live system. </p> </div> """) with gr.Row(): with gr.Column(scale=1): business_name = gr.Textbox( label="π’ Business Name", value=self.business_info['name'], placeholder="Your business name" ) business_phone = gr.Textbox( label="π Business Phone (Your personal number)", value=self.business_info['phone'], placeholder="562-228-9429" ) business_email = gr.Textbox( label="π§ Business Email", value=self.business_info['email'], placeholder="your@email.com" ) with gr.Column(scale=1): business_website = gr.Textbox( label="π Website", value=self.business_info['website'], placeholder="yourwebsite.com" ) business_instagram = gr.Textbox( label="π± Instagram Handle", value=self.business_info['instagram'], placeholder="@yourbusiness" ) service_area = gr.Textbox( label="π Service Area", value=self.business_info['service_area'], placeholder="Your service area" ) save_business_btn = gr.Button("πΎ Save Business Information", variant="primary") def mock_save_business(): return """ <div style="background: #10b981; color: white; padding: 1.5rem; border-radius: 10px; text-align: center;"> <h4 style="margin: 0 0 1rem 0;">β Business Information Saved!</h4> <p style="margin: 0;">AI responses will now use your updated business information.</p> </div> """ save_business_btn.click(fn=mock_save_business, outputs=[gr.HTML()]) # Service Packages & Pricing with gr.Tab("π° Service Packages & Pricing"): gr.HTML(""" <div style="background: #fff7ed; border: 2px solid #ea580c; border-radius: 15px; padding: 2rem; margin: 2rem 0;"> <h3 style="color: #9a3412; margin: 0 0 1rem 0;">π° Service Packages & Pricing</h3> <p style="color: #9a3412; margin: 0;"> Configure your service packages and pricing. AI will quote these exact prices to customers. Updates are applied immediately to live responses. </p> </div> """) # Basic Package gr.HTML("<h4 style='color: #ea580c; margin: 2rem 0 1rem 0;'>π Basic Package</h4>") with gr.Row(): basic_car_price = gr.Number( label="π° Car Price ($)", value=60, minimum=0 ) basic_suv_price = gr.Number( label="π° SUV/Truck Price ($)", value=70, minimum=0 ) basic_description = gr.Textbox( label="π Basic Package Description", value="Exterior wash, dry, basic interior clean, tire shine", lines=2 ) # Premium Package gr.HTML("<h4 style='color: #ea580c; margin: 2rem 0 1rem 0;'>β¨ Premium Package</h4>") with gr.Row(): premium_car_price = gr.Number( label="π° Car Price ($)", value=130, minimum=0 ) premium_suv_price = gr.Number( label="π° SUV/Truck Price ($)", value=140, minimum=0 ) premium_description = gr.Textbox( label="π Premium Package Description", value="Complete wash, wax, interior detail, tire shine, dashboard treatment", lines=2 ) # Ultimate Package gr.HTML("<h4 style='color: #ea580c; margin: 2rem 0 1rem 0;'>π Ultimate Package</h4>") with gr.Row(): ultimate_car_price = gr.Number( label="π° Car Price ($)", value=200, minimum=0 ) ultimate_suv_price = gr.Number( label="π° SUV/Truck Price ($)", value=210, minimum=0 ) ultimate_description = gr.Textbox( label="π Ultimate Package Description", value="Full detail, ceramic coating, paint protection, premium interior, engine bay cleaning", lines=2 ) save_pricing_btn = gr.Button("πΎ Save Pricing Configuration", variant="primary") def mock_save_pricing(): return """ <div style="background: #10b981; color: white; padding: 1.5rem; border-radius: 10px; text-align: center;"> <h4 style="margin: 0 0 1rem 0;">β Pricing Configuration Saved!</h4> <p style="margin: 0;">AI will now quote your updated prices to customers immediately.</p> </div> """ save_pricing_btn.click(fn=mock_save_pricing, outputs=[gr.HTML()]) # Twilio Integration with gr.Tab("π Twilio Integration"): gr.HTML(f""" <div style="background: #ede9fe; border: 2px solid #7c3aed; border-radius: 15px; padding: 2rem; margin: 2rem 0;"> <h3 style="color: #5b21b6; margin: 0 0 1rem 0;">π Twilio Integration Settings</h3> <p style="color: #5b21b6; margin: 0 0 1rem 0;"> Configure your Twilio integration for SMS and Voice bots. Current Status: π’ Connected </p> <p style="color: #5b21b6; margin: 0;"> β οΈ Changes to Twilio settings require system restart to take effect. </p> </div> """) with gr.Row(): with gr.Column(scale=1): twilio_sid_display = gr.Textbox( label="π Account SID", value="Ac48c581...a1ba", interactive=False ) twilio_phone_display = gr.Textbox( label="π Twilio Phone Number", value="+18557059842", interactive=False ) with gr.Column(scale=1): forwarding_phone = gr.Textbox( label="π Call Forwarding Number (Your personal phone)", value="562-228-9429", placeholder="Your phone number where calls are forwarded" ) with gr.Row(): test_twilio_btn = gr.Button("π§ͺ Test Twilio Connection", variant="secondary") configure_webhooks_btn = gr.Button("π Configure Webhooks", variant="secondary") send_test_sms_btn = gr.Button("π± Send Test SMS", variant="secondary") def mock_test_twilio(): return f""" <div style="background: #10b981; color: white; padding: 1.5rem; border-radius: 10px;"> <h4 style="margin: 0 0 1rem 0;">β Twilio Connection Successful!</h4> <p style="margin: 0.5rem 0;"><strong>Account:</strong> Jay's Mobile Wash</p> <p style="margin: 0.5rem 0;"><strong>Status:</strong> Active</p> <p style="margin: 0.5rem 0;"><strong>Phone Numbers:</strong> 1</p> <p style="margin: 0;"><strong>Balance:</strong> $25.43</p> </div> """ test_twilio_btn.click(fn=mock_test_twilio, outputs=[gr.HTML()]) def _create_system_status_interface(self): """Create mock system status interface""" gr.HTML(f""" <div class="feature-card" style="padding: 2rem; border-radius: 15px; margin: 1rem 0;"> <h3 style="color: #1e3a8a; margin: 0 0 1rem 0;">π§ Complete System Status</h3> <h4 style="color: #374151; margin: 1.5rem 0 1rem 0;">π System Health:</h4> <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem;"> <div style="background: #d1fae5; padding: 1rem; border-radius: 8px; border-left: 4px solid #10b981;"> <strong>System Uptime</strong><br> {self.system_uptime}<br> <small>Started: 2025-06-13 06:17:32 UTC</small> </div> <div style="background: #ddd6fe; padding: 1rem; border-radius: 8px; border-left: 4px solid #7c3aed;"> <strong>Components Status</strong><br> 6/6 Active<br> <small>All core systems operational</small> </div> <div style="background: #fef3c7; padding: 1rem; border-radius: 8px; border-left: 4px solid #f59e0b;"> <strong>Platform</strong><br> Hugging Face Spaces<br> <small>Zero GPU enabled</small> </div> </div> <h4 style="color: #374151; margin: 1.5rem 0 1rem 0;">π’ Business Configuration:</h4> <div style="background: #f8fafc; padding: 1rem; border-radius: 8px;"> <p><strong>Business Name:</strong> {self.business_info['name']}</p> <p><strong>Business Phone:</strong> {self.business_info['phone']}</p> <p><strong>AI Phone:</strong> {self.business_info['twilio_phone']}</p> <p><strong>Service Area:</strong> {self.business_info['service_area']}</p> <p><strong>Hours:</strong> {self.business_info['hours']}</p> <p><strong>Space URL:</strong> huggingface.co/spaces/jjmandog/jayscallcenter</p> </div> <h4 style="color: #374151; margin: 1.5rem 0 1rem 0;">πΎ Database Optimization:</h4> <div style="background: #f0fdf4; padding: 1rem; border-radius: 8px; border-left: 4px solid #059669;"> <p><strong>Database Size:</strong> 47.2 MB / 800 MB limit</p> <p><strong>Usage:</strong> 5.9% (Healthy)</p> <p><strong>Last Cleanup:</strong> 2025-06-13 06:00:00 UTC</p> <p><strong>Records:</strong> SMS: 142, Calls: 38, Training: 25</p> <p><strong>Retention:</strong> 30 days detailed, <h4 style="color: #374151; margin: 1.5rem 0 1rem 0;">πΎ Database Optimization:</h4> <div style="background: #f0fdf4; padding: 1rem; border-radius: 8px; border-left: 4px solid #059669;"> <p><strong>Database Size:</strong> 47.2 MB / 800 MB limit</p> <p><strong>Usage:</strong> 5.9% (Healthy)</p> <p><strong>Last Cleanup:</strong> 2025-06-13 06:00:00 UTC</p> <p><strong>Records:</strong> SMS: 142, Calls: 38, Training: 25</p> <p><strong>Retention:</strong> 30 days detailed, 90 days summary</p> </div> <div style="background: #1e3a8a; color: white; padding: 1.5rem; border-radius: 10px; margin-top: 2rem; text-align: center;"> <h4 style="margin: 0 0 1rem 0;">π System Ready for Live Operation!</h4> <p style="margin: 0;">Complete AI system with real backend control, live integrations, and Zero GPU processing.</p> </div> </div> """) # Create the complete mock UI mock_ui = MockUIPreview() app = mock_ui.create_mock_ui() # If running directly, launch the mock UI if __name__ == "__main__": print("π Launching Mock UI Preview...") print(f"π€ User: jjmandog") print(f"π Date: 2025-06-13 08:36:49") print("π± This is a visual preview - no backend functionality") print("π― Perfect for testing UI design and layout") app.launch( server_name="0.0.0.0", server_port=7860, share=False, show_tips=False, show_error=True, auth=None, prevent_thread_lock=False, quiet=False ) - Initial Deployment
Browse files- README.md +7 -5
- index.html +439 -19
- prompts.txt +1 -0
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: testers
|
| 3 |
+
emoji: π³
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: pink
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,439 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>πβ‘ Jay's Mobile Wash - COMPLETE AI System</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<script>
|
| 10 |
+
tailwind.config = {
|
| 11 |
+
theme: {
|
| 12 |
+
extend: {
|
| 13 |
+
colors: {
|
| 14 |
+
primary: '#1e3a8a',
|
| 15 |
+
secondary: '#3b82f6',
|
| 16 |
+
success: '#10b981',
|
| 17 |
+
warning: '#f59e0b',
|
| 18 |
+
danger: '#ef4444',
|
| 19 |
+
dark: '#1e293b'
|
| 20 |
+
},
|
| 21 |
+
backgroundImage: {
|
| 22 |
+
'header-gradient': 'linear-gradient(135deg, #1e3a8a, #3b82f6)',
|
| 23 |
+
'power-gradient': 'linear-gradient(135deg, #059669, #10b981)',
|
| 24 |
+
'training-header': 'linear-gradient(135deg, #7c3aed, #a855f7)',
|
| 25 |
+
'analytics-header': 'linear-gradient(135deg, #ea580c, #f97316)',
|
| 26 |
+
'settings-header': 'linear-gradient(135deg, #059669, #10b981)',
|
| 27 |
+
}
|
| 28 |
+
}
|
| 29 |
+
}
|
| 30 |
+
}
|
| 31 |
+
</script>
|
| 32 |
+
<style type="text/css">
|
| 33 |
+
.tab-content {
|
| 34 |
+
display: none;
|
| 35 |
+
}
|
| 36 |
+
.tab-content.active {
|
| 37 |
+
display: block;
|
| 38 |
+
}
|
| 39 |
+
.feature-card {
|
| 40 |
+
border-left: 6px solid #3b82f6;
|
| 41 |
+
}
|
| 42 |
+
.status-good {
|
| 43 |
+
background: #d1fae5;
|
| 44 |
+
border-left: 4px solid #10b981;
|
| 45 |
+
}
|
| 46 |
+
.status-warning {
|
| 47 |
+
background: #fef3c7;
|
| 48 |
+
border-left: 4px solid #f59e0b;
|
| 49 |
+
}
|
| 50 |
+
.custom-scrollbar::-webkit-scrollbar {
|
| 51 |
+
width: 6px;
|
| 52 |
+
}
|
| 53 |
+
.custom-scrollbar::-webkit-scrollbar-track {
|
| 54 |
+
background: #f1f5f9;
|
| 55 |
+
}
|
| 56 |
+
.custom-scrollbar::-webkit-scrollbar-thumb {
|
| 57 |
+
background: #cbd5e1;
|
| 58 |
+
border-radius: 4px;
|
| 59 |
+
}
|
| 60 |
+
.toggle-checkbox:checked {
|
| 61 |
+
right: 0;
|
| 62 |
+
border-color: #10b981;
|
| 63 |
+
}
|
| 64 |
+
.toggle-checkbox:checked + .toggle-label {
|
| 65 |
+
background-color: #10b981;
|
| 66 |
+
}
|
| 67 |
+
.toggle-label {
|
| 68 |
+
transition: background-color 0.3s ease;
|
| 69 |
+
}
|
| 70 |
+
.sms-bubble {
|
| 71 |
+
border-radius: 1rem;
|
| 72 |
+
max-width: 80%;
|
| 73 |
+
}
|
| 74 |
+
.customer-bubble {
|
| 75 |
+
background-color: #e0f2fe;
|
| 76 |
+
border-top-left-radius: 0.25rem;
|
| 77 |
+
}
|
| 78 |
+
.business-bubble {
|
| 79 |
+
background-color: #d1fae5;
|
| 80 |
+
border-top-right-radius: 0.25rem;
|
| 81 |
+
}
|
| 82 |
+
</style>
|
| 83 |
+
</head>
|
| 84 |
+
<body class="bg-gray-50 text-gray-800 font-sans">
|
| 85 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
|
| 86 |
+
<!-- Main Header -->
|
| 87 |
+
<header class="bg-header-gradient text-white rounded-3xl p-8 md:p-12 text-center mb-8 shadow-xl">
|
| 88 |
+
<h1 class="text-3xl md:text-4xl font-bold mb-4">πβ‘ Jay's Mobile Wash</h1>
|
| 89 |
+
<h2 class="text-xl md:text-2xl mb-4 opacity-90">COMPLETE AI Training & Management System</h2>
|
| 90 |
+
<p class="text-lg mb-6">π₯ ALL FEATURES IMPLEMENTED β’ Real Backend β’ Live Operations β’ Zero GPU</p>
|
| 91 |
+
|
| 92 |
+
<div class="flex flex-wrap justify-center gap-4 mt-6">
|
| 93 |
+
<div class="bg-white/15 px-4 py-3 rounded-xl">
|
| 94 |
+
<strong>π€ Owner: jjmandog</strong>
|
| 95 |
+
</div>
|
| 96 |
+
<div class="bg-white/15 px-4 py-3 rounded-xl">
|
| 97 |
+
<strong>π Business: 562-228-9429</strong>
|
| 98 |
+
</div>
|
| 99 |
+
<div class="bg-white/15 px-4 py-3 rounded-xl">
|
| 100 |
+
<strong>π€ AI Phone: +18557059842</strong>
|
| 101 |
+
</div>
|
| 102 |
+
<div class="bg-white/15 px-4 py-3 rounded-xl">
|
| 103 |
+
<strong>π Service: Los Angeles, Orange County, and the IE</strong>
|
| 104 |
+
</div>
|
| 105 |
+
<div class="bg-success px-4 py-3 rounded-xl">
|
| 106 |
+
<strong>π’ AI LIVE</strong>
|
| 107 |
+
</div>
|
| 108 |
+
</div>
|
| 109 |
+
|
| 110 |
+
<div class="bg-white/10 p-4 rounded-2xl mt-8">
|
| 111 |
+
<small>π€ Hugging Face Space: huggingface.co/spaces/jjmandog/jayscallcenter | Date: 2025-06-13 08:32:47 | COMPLETE IMPLEMENTATION</small>
|
| 112 |
+
</div>
|
| 113 |
+
</header>
|
| 114 |
+
|
| 115 |
+
<!-- System Status Overview -->
|
| 116 |
+
<section class="bg-blue-50 border-2 border-blue-500 rounded-2xl p-6 mb-8">
|
| 117 |
+
<h3 class="text-primary text-xl font-bold mb-4">π― COMPLETE System Status</h3>
|
| 118 |
+
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6 gap-4">
|
| 119 |
+
<div class="bg-white p-4 rounded-xl text-center border-l-4 border-success">
|
| 120 |
+
<div class="text-3xl mb-2">π</div>
|
| 121 |
+
<strong>Twilio Integration</strong><br>
|
| 122 |
+
<small class="text-success">π’ Connected</small>
|
| 123 |
+
</div>
|
| 124 |
+
<div class="bg-white p-4 rounded-xl text-center border-l-4 border-success">
|
| 125 |
+
<div class="text-3xl mb-2">π€</div>
|
| 126 |
+
<strong>Voice Processing</strong><br>
|
| 127 |
+
<small class="text-success">π’ Ready</small>
|
| 128 |
+
</div>
|
| 129 |
+
<div class="bg-white p-4 rounded-xl text-center border-l-4 border-success">
|
| 130 |
+
<div class="text-3xl mb-2">π</div>
|
| 131 |
+
<strong>AI Training</strong><br>
|
| 132 |
+
<small class="text-success">π’ 4 Methods Ready</small>
|
| 133 |
+
</div>
|
| 134 |
+
<div class="bg-white p-4 rounded-xl text-center border-l-4 border-success">
|
| 135 |
+
<div class="text-3xl mb-2">π</div>
|
| 136 |
+
<strong>Analytics</strong><br>
|
| 137 |
+
<small class="text-success">π’ Live Dashboard</small>
|
| 138 |
+
</div>
|
| 139 |
+
<div class="bg-white p-4 rounded-xl text-center border-l-4 border-success">
|
| 140 |
+
<div class="text-3xl mb-2">βοΈ</div>
|
| 141 |
+
<strong>Backend Control</strong><br>
|
| 142 |
+
<small class="text-success">π’ Full Access</small>
|
| 143 |
+
</div>
|
| 144 |
+
<div class="bg-white p-4 rounded-xl text-center border-l-4 border-success">
|
| 145 |
+
<div class="text-3xl mb-2">π</div>
|
| 146 |
+
<strong>Webhooks</strong><br>
|
| 147 |
+
<small class="text-success">π’ Live Integration</small>
|
| 148 |
+
</div>
|
| 149 |
+
</div>
|
| 150 |
+
<div class="bg-blue-100/50 px-4 py-3 rounded-xl mt-4 text-center">
|
| 151 |
+
<strong class="text-primary">
|
| 152 |
+
System Uptime: 2h 15m | Components: 6/6 Active | Zero GPU: Enabled
|
| 153 |
+
</strong>
|
| 154 |
+
</div>
|
| 155 |
+
</section>
|
| 156 |
+
|
| 157 |
+
<!-- Master Power Control -->
|
| 158 |
+
<section class="bg-power-gradient text-white rounded-2xl p-8 text-center mb-8 shadow-md">
|
| 159 |
+
<h2 class="text-2xl font-bold mb-4">π΄π’ Master AI System Power</h2>
|
| 160 |
+
<p class="opacity-90">Control your complete AI system with live SMS, Voice, Training, and Analytics</p>
|
| 161 |
+
</section>
|
| 162 |
+
|
| 163 |
+
<!-- Power Toggle -->
|
| 164 |
+
<div class="bg-white rounded-xl p-6 mb-8 flex items-center justify-between">
|
| 165 |
+
<div>
|
| 166 |
+
<h3 class="font-bold text-lg">π΄π’ COMPLETE AI System Power</h3>
|
| 167 |
+
<p class="text-gray-600">Red = All AI Off | Green = Complete System Live β’ Includes SMS, Voice, Training, Analytics</p>
|
| 168 |
+
</div>
|
| 169 |
+
<div class="relative inline-block w-16 mr-2 align-middle select-none">
|
| 170 |
+
<input type="checkbox" id="power-toggle" class="toggle-checkbox absolute block w-6 h-6 rounded-full bg-white border-4 appearance-none cursor-pointer" checked>
|
| 171 |
+
<label for="power-toggle" class="toggle-label block overflow-hidden h-6 rounded-full bg-gray-300 cursor-pointer"></label>
|
| 172 |
+
</div>
|
| 173 |
+
</div>
|
| 174 |
+
|
| 175 |
+
<!-- Tabs Navigation -->
|
| 176 |
+
<div class="flex overflow-x-auto border-b mb-6">
|
| 177 |
+
<button class="tab-btn px-4 py-2 font-medium border-b-2 border-transparent text-gray-600 hover:text-primary" data-tab="overview">π― System Overview</button>
|
| 178 |
+
<button class="tab-btn px-4 py-2 font-medium border-b-2 border-transparent text-gray-600 hover:text-primary" data-tab="training">π AI Training</button>
|
| 179 |
+
<button class="tab-btn px-4 py-2 font-medium border-b-2 border-transparent text-gray-600 hover:text-primary" data-tab="analytics">π Analytics</button>
|
| 180 |
+
<button class="tab-btn px-4 py-2 font-medium border-b-2 border-transparent text-gray-600 hover:text-primary" data-tab="settings">βοΈ Settings</button>
|
| 181 |
+
<button class="tab-btn px-4 py-2 font-medium border-b-2 border-transparent text-gray-600 hover:text-primary" data-tab="status">π§ System Status</button>
|
| 182 |
+
</div>
|
| 183 |
+
|
| 184 |
+
<!-- Tab Content -->
|
| 185 |
+
<div class="tab-content active" id="overview">
|
| 186 |
+
<div class="bg-white feature-card rounded-2xl p-6 mb-8">
|
| 187 |
+
<h3 class="text-primary text-xl font-bold mb-4">π― Complete System Overview</h3>
|
| 188 |
+
<p class="mb-6">Your complete AI system for Jay's Mobile Wash is now fully implemented and ready for live operation.</p>
|
| 189 |
+
|
| 190 |
+
<h4 class="text-gray-700 text-lg font-medium mb-4">π₯ Implemented Features:</h4>
|
| 191 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 mb-6">
|
| 192 |
+
<div class="bg-gray-50 p-4 rounded-xl border-l-4 border-red-500">
|
| 193 |
+
<strong>π± Live SMS Bot</strong><br>
|
| 194 |
+
<small>Real Twilio integration on +18557059842</small><br>
|
| 195 |
+
<small>Responds to customer texts with your business knowledge</small>
|
| 196 |
+
</div>
|
| 197 |
+
<div class="bg-gray-50 p-4 rounded-xl border-l-4 border-orange-500">
|
| 198 |
+
<strong>π Live Voice Bot</strong><br>
|
| 199 |
+
<small>AI answers calls, forwards to 562-228-9429</small><br>
|
| 200 |
+
<small>Voice recognition & text-to-speech enabled</small>
|
| 201 |
+
</div>
|
| 202 |
+
<div class="bg-gray-50 p-4 rounded-xl border-l-4 border-green-500">
|
| 203 |
+
<strong>π 4 AI Training Methods</strong><br>
|
| 204 |
+
<small>Customer Simulation, AI Questioning, Conversation Practice, Voice Training</small><br>
|
| 205 |
+
<small>Zero GPU acceleration for fast training</small>
|
| 206 |
+
</div>
|
| 207 |
+
<div class="bg-gray-50 p-4 rounded-xl border-l-4 border-cyan-500">
|
| 208 |
+
<strong>π Real Analytics Dashboard</strong><br>
|
| 209 |
+
<small>Live SMS/Call analytics, training progress</small><br>
|
| 210 |
+
<small>Business intelligence and performance monitoring</small>
|
| 211 |
+
</div>
|
| 212 |
+
<div class="bg-gray-50 p-4 rounded-xl border-l-4 border-purple-500">
|
| 213 |
+
<strong>βοΈ Complete Backend Control</strong><br>
|
| 214 |
+
<small>Real settings control, pricing updates, business info</small><br>
|
| 215 |
+
<small>Twilio configuration, system management</small>
|
| 216 |
+
</div>
|
| 217 |
+
<div class="bg-gray-50 p-4 rounded-xl border-l-4 border-primary">
|
| 218 |
+
<strong>π Live Integration</strong><br>
|
| 219 |
+
<small>Webhook server, real-time responses, database logging</small><br>
|
| 220 |
+
<small>Security, monitoring, performance tracking</small>
|
| 221 |
+
</div>
|
| 222 |
+
</div>
|
| 223 |
+
|
| 224 |
+
<div class="bg-success text-white p-6 rounded-xl text-center">
|
| 225 |
+
<h4 class="text-xl font-bold mb-2">β
Your AI System is COMPLETE and Ready!</h4>
|
| 226 |
+
<p>All features implemented, tested, and configured with your real business information.</p>
|
| 227 |
+
</div>
|
| 228 |
+
</div>
|
| 229 |
+
</div>
|
| 230 |
+
|
| 231 |
+
<!-- AI Training Tab -->
|
| 232 |
+
<div class="tab-content" id="training">
|
| 233 |
+
<div class="bg-training-header text-white rounded-2xl p-8 mb-8 text-center">
|
| 234 |
+
<h1 class="text-3xl font-bold mb-2">π Complete AI Training System</h1>
|
| 235 |
+
<h2 class="text-xl opacity-90">Jay's Mobile Wash - Professional Training</h2>
|
| 236 |
+
<p class="text-lg mt-2">4 Training Methods β’ Zero GPU Acceleration β’ Real Business Knowledge</p>
|
| 237 |
+
</div>
|
| 238 |
+
|
| 239 |
+
<div class="bg-gray-50 border border-yellow-400 rounded-2xl p-6 mb-8">
|
| 240 |
+
<h3 class="text-amber-900 text-xl font-bold mb-2">π Customer Simulation Training</h3>
|
| 241 |
+
<p class="text-amber-900"><strong>How it works:</strong> You act like different types of customers, and the AI learns how Jay would respond.</p>
|
| 242 |
+
<p class="text-amber-900"><strong>Difficulty:</strong> Beginner β’ <strong>Time:</strong> 15-30 minutes β’ <strong>Goal:</strong> Teach natural customer responses</p>
|
| 243 |
+
</div>
|
| 244 |
+
|
| 245 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
|
| 246 |
+
<div class="bg-white rounded-xl p-6">
|
| 247 |
+
<div class="mb-6">
|
| 248 |
+
<label class="block text-gray-700 font-medium mb-2">π Choose Customer Scenario</label>
|
| 249 |
+
<select class="w-full p-3 border rounded-lg">
|
| 250 |
+
<option>Price Shopping Customer</option>
|
| 251 |
+
<option>Urgent Booking Customer</option>
|
| 252 |
+
<option>Quality-Focused Customer</option>
|
| 253 |
+
<option>First-Time Customer</option>
|
| 254 |
+
</select>
|
| 255 |
+
</div>
|
| 256 |
+
|
| 257 |
+
<div class="mb-6">
|
| 258 |
+
<label class="block text-gray-700 font-medium mb-2">π¬ Your Customer Message</label>
|
| 259 |
+
<textarea class="w-full p-3 border rounded-lg" rows="3" placeholder="Example: Hi, how much do you charge for a car wash?"></textarea>
|
| 260 |
+
</div>
|
| 261 |
+
|
| 262 |
+
<button class="bg-primary hover:bg-blue-700 text-white py-3 px-6 rounded-lg w-full mb-4">
|
| 263 |
+
<i class="fas fa-robot mr-2"></i> Generate AI Response
|
| 264 |
+
</button>
|
| 265 |
+
|
| 266 |
+
<div class="mb-6">
|
| 267 |
+
<label class="block text-gray-700 font-medium mb-2">π€ AI Response</label>
|
| 268 |
+
<textarea class="w-full p-3 border rounded-lg bg-gray-50" rows="4" readonly>Hi! Thanks for reaching out to Jay's Mobile Wash! For a basic car wash, we charge $60 for cars and $70 for SUVs. This includes exterior wash, dry, and basic interior cleaning. Would you like to hear about our other packages?</textarea>
|
| 269 |
+
</div>
|
| 270 |
+
</div>
|
| 271 |
+
|
| 272 |
+
<div class="bg-white rounded-xl p-6">
|
| 273 |
+
<div class="mb-6">
|
| 274 |
+
<label class="block text-gray-700 font-medium mb-2">βοΈ Your Expert Feedback</label>
|
| 275 |
+
<textarea class="w-full p-3 border rounded-lg" rows="4" placeholder="Example: The AI should also mention our premium wax service and ask about their location..."></textarea>
|
| 276 |
+
</div>
|
| 277 |
+
|
| 278 |
+
<div class="mb-6">
|
| 279 |
+
<label class="block text-gray-700 font-medium mb-2">β Rate AI Response (1=Poor, 10=Perfect)</label>
|
| 280 |
+
<input type="range" min="1" max="10" value="8" class="w-full">
|
| 281 |
+
<div class="flex justify-between text-sm text-gray-500">
|
| 282 |
+
<span>1</span>
|
| 283 |
+
<span>2</span>
|
| 284 |
+
<span>3</span>
|
| 285 |
+
<span>4</span>
|
| 286 |
+
<span>5</span>
|
| 287 |
+
<span>6</span>
|
| 288 |
+
<span>7</span>
|
| 289 |
+
<span>8</span>
|
| 290 |
+
<span>9</span>
|
| 291 |
+
<span>10</span>
|
| 292 |
+
</div>
|
| 293 |
+
</div>
|
| 294 |
+
|
| 295 |
+
<button class="bg-gray-700 hover:bg-gray-800 text-white py-3 px-6 rounded-lg w-full">
|
| 296 |
+
<i class="fas fa-save mr-2"></i> Save Training Data
|
| 297 |
+
</button>
|
| 298 |
+
</div>
|
| 299 |
+
</div>
|
| 300 |
+
</div>
|
| 301 |
+
|
| 302 |
+
<!-- Analytics Tab -->
|
| 303 |
+
<div class="tab-content" id="analytics">
|
| 304 |
+
<div class="bg-analytics-header text-white rounded-2xl p-8 mb-8 text-center">
|
| 305 |
+
<h1 class="text-3xl font-bold mb-2">π Analytics Dashboard</h1>
|
| 306 |
+
<h2 class="text-xl opacity-90">Jay's Mobile Wash - Performance Intelligence</h2>
|
| 307 |
+
<p class="text-lg mt-2">Live Data β’ Performance Metrics β’ AI Training Analytics</p>
|
| 308 |
+
</div>
|
| 309 |
+
|
| 310 |
+
<div class="flex flex-wrap justify-between items-center mb-6">
|
| 311 |
+
<button class="bg-primary hover:bg-blue-700 text-white py-2 px-6 rounded-lg mb-4">
|
| 312 |
+
<i class="fas fa-sync-alt mr-2"></i> Refresh All Data
|
| 313 |
+
</button>
|
| 314 |
+
<div class="bg-success text-white py-3 px-6 rounded-lg">
|
| 315 |
+
<strong>π Data refreshed at 08:32:47 PST</strong>
|
| 316 |
+
</div>
|
| 317 |
+
</div>
|
| 318 |
+
|
| 319 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8">
|
| 320 |
+
<div class="bg-success text-white rounded-2xl p-6 text-center">
|
| 321 |
+
<h3 class="text-xl font-medium mb-4">π― System Performance Score</h3>
|
| 322 |
+
<div class="text-5xl font-bold mb-2">87%</div>
|
| 323 |
+
<p class="opacity-90">SMS, Calls & AI Training performance</p>
|
| 324 |
+
</div>
|
| 325 |
+
<div class="bg-success text-white rounded-2xl p-6 text-center">
|
| 326 |
+
<h3 class="text-xl font-medium mb-4">π System Health</h3>
|
| 327 |
+
<div class="text-5xl mb-2">π’</div>
|
| 328 |
+
<p class="opacity-90">Healthy</p>
|
| 329 |
+
</div>
|
| 330 |
+
</div>
|
| 331 |
+
|
| 332 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
|
| 333 |
+
<div class="bg-blue-500 text-white rounded-2xl p-6 text-center">
|
| 334 |
+
<h3 class="text-xl font-medium mb-4">π Total Interactions (30 days)</h3>
|
| 335 |
+
<div class="text-5xl font-bold mb-2">180</div>
|
| 336 |
+
<div class="flex justify-around mt-4">
|
| 337 |
+
<div><i class="fas fa-comment mr-2"></i> SMS: 142</div>
|
| 338 |
+
<div><i class="fas fa-phone mr-2"></i> Calls: 38</div>
|
| 339 |
+
</div>
|
| 340 |
+
</div>
|
| 341 |
+
<div class="bg-purple-500 text-white rounded-2xl p-6 text-center">
|
| 342 |
+
<h3 class="text-xl font-medium mb-4">β‘ Live System Status</h3>
|
| 343 |
+
<div class="text-5xl font-bold mb-2">12</div>
|
| 344 |
+
<p class="mb-1">Interactions in last 24 hours</p>
|
| 345 |
+
<small class="opacity-80">Last activity: 2025-06-13 08:25:32</small>
|
| 346 |
+
</div>
|
| 347 |
+
</div>
|
| 348 |
+
|
| 349 |
+
<div class="bg-white rounded-2xl p-6 mb-8">
|
| 350 |
+
<h4 class="text-lg font-bold text-gray-700 mb-4">π Top Customer Keywords (Last 7 days)</h4>
|
| 351 |
+
<div class="grid grid-cols-2 md:grid-cols-4 gap-4">
|
| 352 |
+
<div class="bg-blue-50 p-4 rounded-xl">
|
| 353 |
+
<strong class="text-primary">price</strong> - 34 mentions
|
| 354 |
+
</div>
|
| 355 |
+
<div class="bg-blue-50 p-4 rounded-xl">
|
| 356 |
+
<strong class="text-primary">schedule</strong> - 28 mentions
|
| 357 |
+
</div>
|
| 358 |
+
<div class="bg-blue-50 p-4 rounded-xl">
|
| 359 |
+
<strong class="text-primary">wash</strong> - 45 mentions
|
| 360 |
+
</div>
|
| 361 |
+
<div class="bg-blue-50 p-4 rounded-xl">
|
| 362 |
+
<strong class="text-primary">detail</strong> - 19 mentions
|
| 363 |
+
</div>
|
| 364 |
+
</div>
|
| 365 |
+
</div>
|
| 366 |
+
</div>
|
| 367 |
+
|
| 368 |
+
<!-- Footer -->
|
| 369 |
+
<footer class="text-center py-12 border-t mt-12">
|
| 370 |
+
<h3 class="text-primary text-xl font-bold mb-4">πβ‘ Jay's Mobile Wash - COMPLETE AI System</h3>
|
| 371 |
+
<p class="mb-4"><strong>π₯ ALL FEATURES IMPLEMENTED β’ Real Backend Control β’ Live Operations β’ Zero GPU Powered</strong></p>
|
| 372 |
+
<div class="flex flex-wrap justify-center gap-4 text-gray-600 mb-4">
|
| 373 |
+
<span>π€ Owner: jjmandog</span>
|
| 374 |
+
<span>π Business: 562-228-9429</span>
|
| 375 |
+
<span>π€ AI: +18557059842</span>
|
| 376 |
+
<span>π Los Angeles, Orange County, and the IE</span>
|
| 377 |
+
<span>π€ HF Spaces</span>
|
| 378 |
+
</div>
|
| 379 |
+
<p class="text-sm text-gray-500 mb-1">π Complete Implementation Date: 2025-06-13 08:32:47 | All Features Active</p>
|
| 380 |
+
<p class="text-sm text-gray-500">Features: Live SMS/Voice Bots β’ 4 Training Methods β’ Real Analytics β’ Backend Control β’ Webhook Integration β’ Voice Processing β’ Database Logging</p>
|
| 381 |
+
</footer>
|
| 382 |
+
</div>
|
| 383 |
+
|
| 384 |
+
<script>
|
| 385 |
+
// Tab switching functionality
|
| 386 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 387 |
+
const tabButtons = document.querySelectorAll('.tab-btn');
|
| 388 |
+
const tabContents = document.querySelectorAll('.tab-content');
|
| 389 |
+
|
| 390 |
+
tabButtons.forEach(button => {
|
| 391 |
+
button.addEventListener('click', () => {
|
| 392 |
+
const targetTab = button.getAttribute('data-tab');
|
| 393 |
+
|
| 394 |
+
// Remove active classes from all tabs/buttons
|
| 395 |
+
tabButtons.forEach(btn => btn.classList.remove('border-primary', 'text-primary'));
|
| 396 |
+
tabContents.forEach(content => content.classList.remove('active'));
|
| 397 |
+
|
| 398 |
+
// Add active classes to clicked tab
|
| 399 |
+
button.classList.add('border-primary', 'text-primary');
|
| 400 |
+
document.getElementById(targetTab).classList.add('active');
|
| 401 |
+
});
|
| 402 |
+
});
|
| 403 |
+
|
| 404 |
+
// Power toggle animation
|
| 405 |
+
const powerToggle = document.getElementById('power-toggle');
|
| 406 |
+
powerToggle.addEventListener('change', function() {
|
| 407 |
+
if (this.checked) {
|
| 408 |
+
// Create success notification element
|
| 409 |
+
const notification = document.createElement('div');
|
| 410 |
+
notification.className = 'bg-success text-white p-4 rounded-xl mb-8 text-center';
|
| 411 |
+
notification.innerHTML = `
|
| 412 |
+
<h3 class="font-bold mb-2">π’ COMPLETE AI SYSTEM IS LIVE!</h3>
|
| 413 |
+
<p class="mb-2">Complete AI system powered on successfully!</p>
|
| 414 |
+
<div class="bg-white/20 p-3 rounded-lg mt-2 text-sm">
|
| 415 |
+
<strong>π₯ Active Features:</strong><br>
|
| 416 |
+
β’ π± Live SMS Bot on +18557059842<br>
|
| 417 |
+
β’ π Live Voice Bot with forwarding to 562-228-9429<br>
|
| 418 |
+
β’ π€ AI Conversation Engine with your business knowledge<br>
|
| 419 |
+
β’ π€ Voice Recognition & Text-to-Speech<br>
|
| 420 |
+
β’ π 4 AI Training Methods<br>
|
| 421 |
+
β’ π Real-time Analytics Dashboard<br>
|
| 422 |
+
β’ βοΈ Complete Backend Settings Control<br>
|
| 423 |
+
β’ π Live Webhook Integration
|
| 424 |
+
</div>
|
| 425 |
+
`;
|
| 426 |
+
|
| 427 |
+
// Insert after the power toggle section
|
| 428 |
+
document.querySelector('.flex.items-center.justify-between').after(notification);
|
| 429 |
+
|
| 430 |
+
// Remove notification after 5 seconds
|
| 431 |
+
setTimeout(() => {
|
| 432 |
+
notification.remove();
|
| 433 |
+
}, 5000);
|
| 434 |
+
}
|
| 435 |
+
});
|
| 436 |
+
});
|
| 437 |
+
</script>
|
| 438 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 𧬠<a href="https://enzostvs-deepsite.hf.space?remix=jjmandog/testers" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 439 |
+
</html>
|
prompts.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
# Jay's Mobile Wash - Mock UI Preview (Visual Only - No Backend) # Current Date import gradio as gr import json import random from datetime import datetime, timedelta class MockUIPreview: """Mock UI preview that looks exactly like the real system""" def __init__(self): """Initialize mock UI with fake data""" # Mock business data (your real info for display) self.business_info = { 'name': "Jay's Mobile Wash", 'phone': '562-228-9429', 'twilio_phone': '+18557059842', 'email': 'jay@jaysmobilewash.com', 'website': 'jaysmobilewash.com', 'instagram': '@jayswaxandwash', 'service_area': 'Los Angeles, Orange County, and the IE', 'hours': '6 AM to 5 PM PST daily', 'owner': 'jjmandog' } # Mock system status self.system_powered_on = True self.system_uptime = "2h 15m" # Mock analytics data self.mock_analytics = { 'sms_total': 142, 'calls_total': 38, 'training_sessions': 25, 'performance_score': 87, 'response_rate': 94.2, 'avg_call_duration': 125 } def create_mock_ui(self): """Create the complete mock UI""" with gr.Blocks( title="πβ‘ Jay's Mobile Wash - COMPLETE AI System", theme=gr.themes.Soft(), css=""" .main-header { background: linear-gradient(135deg, #1e3a8a, #3b82f6); } .power-control { background: linear-gradient(135deg, #059669, #10b981); } .feature-card { background: white; border-left: 6px solid #3b82f6; } .status-good { background: #d1fae5; border-color: #10b981; } .status-warning { background: #fef3c7; border-color: #f59e0b; } """ ) as mock_app: # MAIN HEADER (Exact replica) gr.HTML(f""" <div class="main-header" style="color: white; padding: 3rem; border-radius: 25px; text-align: center; margin-bottom: 2rem;"> <h1 style="margin: 0; font-size: 3rem;">πβ‘ {self.business_info['name']}</h1> <h2 style="margin: 1rem 0; font-size: 1.8rem; opacity: 0.9;">COMPLETE AI Training & Management System</h2> <p style="margin: 1rem 0; font-size: 1.2rem;">π₯ ALL FEATURES IMPLEMENTED β’ Real Backend β’ Live Operations β’ Zero GPU</p> <div style="display: flex; justify-content: center; gap: 2rem; margin-top: 2rem; flex-wrap: wrap;"> <div style="background: rgba(255,255,255,0.15); padding: 1rem; border-radius: 10px;"> <strong>π€ Owner: {self.business_info['owner']}</strong> </div> <div style="background: rgba(255,255,255,0.15); padding: 1rem; border-radius: 10px;"> <strong>π Business: {self.business_info['phone']}</strong> </div> <div style="background: rgba(255,255,255,0.15); padding: 1rem; border-radius: 10px;"> <strong>π€ AI Phone: {self.business_info['twilio_phone']}</strong> </div> <div style="background: rgba(255,255,255,0.15); padding: 1rem; border-radius: 10px;"> <strong>π Service: {self.business_info['service_area']}</strong> </div> <div style="background: {'#10b981' if self.system_powered_on else '#ef4444'}; padding: 1rem; border-radius: 10px;"> <strong>{'π’ AI LIVE' if self.system_powered_on else 'π΄ AI OFF'}</strong> </div> </div> <div style="background: rgba(255,255,255,0.1); padding: 1rem; border-radius: 15px; margin-top: 2rem;"> <small>π€ Hugging Face Space: huggingface.co/spaces/jjmandog/jayscallcenter | Date: 2025-06-13 08:32:47 | COMPLETE IMPLEMENTATION</small> </div> </div> """) # SYSTEM STATUS OVERVIEW (Exact replica) gr.HTML(f""" <div style="background: #f0f9ff; border: 2px solid #3b82f6; border-radius: 15px; padding: 2rem; margin: 2rem 0;"> <h3 style="color: #1e3a8a; margin: 0 0 1rem 0;">π― COMPLETE System Status</h3> <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem;"> <div style="background: white; padding: 1rem; border-radius: 10px; text-align: center; border-left: 4px solid #10b981;"> <div style="font-size: 2rem;">π</div> <strong>Twilio Integration</strong><br> <small>π’ Connected</small> </div> <div style="background: white; padding: 1rem; border-radius: 10px; text-align: center; border-left: 4px solid #10b981;"> <div style="font-size: 2rem;">π€</div> <strong>Voice Processing</strong><br> <small>π’ Ready</small> </div> <div style="background: white; padding: 1rem; border-radius: 10px; text-align: center; border-left: 4px solid #10b981;"> <div style="font-size: 2rem;">π</div> <strong>AI Training</strong><br> <small>π’ 4 Methods Ready</small> </div> <div style="background: white; padding: 1rem; border-radius: 10px; text-align: center; border-left: 4px solid #10b981;"> <div style="font-size: 2rem;">π</div> <strong>Analytics</strong><br> <small>π’ Live Dashboard</small> </div> <div style="background: white; padding: 1rem; border-radius: 10px; text-align: center; border-left: 4px solid #10b981;"> <div style="font-size: 2rem;">βοΈ</div> <strong>Backend Control</strong><br> <small>π’ Full Access</small> </div> <div style="background: white; padding: 1rem; border-radius: 10px; text-align: center; border-left: 4px solid #10b981;"> <div style="font-size: 2rem;">π</div> <strong>Webhooks</strong><br> <small>π’ Live Integration</small> </div> </div> <div style="background: rgba(59, 130, 246, 0.1); padding: 1rem; border-radius: 10px; margin-top: 1rem; text-align: center;"> <strong style="color: #1e3a8a;"> System Uptime: {self.system_uptime} | Components: 6/6 Active | Zero GPU: Enabled </strong> </div> </div> """) # MASTER POWER CONTROL (Exact replica) gr.HTML(""" <div class="power-control" style="color: white; padding: 2rem; border-radius: 20px; text-align: center; margin: 2rem 0;"> <h2 style="margin: 0 0 1rem 0;">π΄π’ Master AI System Power</h2> <p style="margin: 0; opacity: 0.9;">Control your complete AI system with live SMS, Voice, Training, and Analytics</p> </div> """) # Power toggle power_toggle = gr.Checkbox( label="π΄π’ COMPLETE AI System Power (SMS Bots, Voice Bots, Training, Analytics, Backend)", value=self.system_powered_on, info="Red = All AI Off | Green = Complete System Live β’ Includes SMS, Voice, Training, Analytics" ) power_status_display = gr.HTML() # MAIN SYSTEM INTERFACE TABS with gr.Tabs(): # π― SYSTEM OVERVIEW TAB with gr.Tab("π― System Overview"): gr.HTML(f""" <div class="feature-card" style="padding: 2rem; border-radius: 15px; margin: 1rem 0;"> <h3 style="color: #1e3a8a; margin: 0 0 1rem 0;">π― Complete System Overview</h3> <p>Your complete AI system for {self.business_info['name']} is now fully implemented and ready for live operation.</p> <h4 style="color: #374151; margin: 1.5rem 0 1rem 0;">π₯ Implemented Features:</h4> <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem;"> <div style="background: #f8fafc; padding: 1rem; border-radius: 8px; border-left: 4px solid #dc2626;"> <strong>π± Live SMS Bot</strong><br> <small>Real Twilio integration on {self.business_info['twilio_phone']}</small><br> <small>Responds to customer texts with your business knowledge</small> </div> <div style="background: #f8fafc; padding: 1rem; border-radius: 8px; border-left: 4px solid #ea580c;"> <strong>π Live Voice Bot</strong><br> <small>AI answers calls, forwards to {self.business_info['phone']}</small><br> <small>Voice recognition & text-to-speech enabled</small> </div> <div style="background: #f8fafc; padding: 1rem; border-radius: 8px; border-left: 4px solid #059669;"> <strong>π 4 AI Training Methods</strong><br> <small>Customer Simulation, AI Questioning, Conversation Practice, Voice Training</small><br> <small>Zero GPU acceleration for fast training</small> </div> <div style="background: #f8fafc; padding: 1rem; border-radius: 8px; border-left: 4px solid #0891b2;"> <strong>π Real Analytics Dashboard</strong><br> <small>Live SMS/Call analytics, training progress</small><br> <small>Business intelligence and performance monitoring</small> </div> <div style="background: #f8fafc; padding: 1rem; border-radius: 8px; border-left: 4px solid #7c3aed;"> <strong>βοΈ Complete Backend Control</strong><br> <small>Real settings control, pricing updates, business info</small><br> <small>Twilio configuration, system management</small> </div> <div style="background: #f8fafc; padding: 1rem; border-radius: 8px; border-left: 4px solid #1e3a8a;"> <strong>π Live Integration</strong><br> <small>Webhook server, real-time responses, database logging</small><br> <small>Security, monitoring, performance tracking</small> </div> </div> <div style="background: #10b981; color: white; padding: 1.5rem; border-radius: 10px; margin-top: 2rem; text-align: center;"> <h4 style="margin: 0 0 1rem 0;">β
Your AI System is COMPLETE and Ready!</h4> <p style="margin: 0;">All features implemented, tested, and configured with your real business information.</p> </div> </div> """) # π AI TRAINING TAB with gr.Tab("π AI Training"): self._create_training_interface() # π ANALYTICS TAB with gr.Tab("π Analytics"): self._create_analytics_interface() # βοΈ SETTINGS TAB with gr.Tab("βοΈ Settings"): self._create_settings_interface() # π§ SYSTEM STATUS TAB with gr.Tab("π§ System Status"): self._create_system_status_interface() # MOCK FUNCTIONS FOR INTERACTIVITY def mock_power_toggle(power_state): """Mock power toggle response""" if power_state: return f""" <div style="background: #10b981; color: white; padding: 2rem; border-radius: 15px; text-align: center;"> <h3 style="margin: 0 0 1rem 0;">π’ COMPLETE AI SYSTEM IS LIVE!</h3> <p style="margin: 0 0 1rem 0;">Complete AI system powered on successfully!</p> <div style="background: rgba(255,255,255,0.1); padding: 1rem; border-radius: 10px; margin-top: 1rem;"> <strong>π₯ Active Features:</strong><br> β’ π± Live SMS Bot on {self.business_info['twilio_phone']}<br> β’ π Live Voice Bot with forwarding to {self.business_info['phone']}<br> β’ π€ AI Conversation Engine with your business knowledge<br> β’ π€ Voice Recognition & Text-to-Speech<br> β’ π 4 AI Training Methods<br> β’ π Real-time Analytics Dashboard<br> β’ βοΈ Complete Backend Settings Control<br> β’ π Live Webhook Integration </div> <div style="background: rgba(255,255,255,0.1); padding: 1rem; border-radius: 10px; margin-top: 1rem;"> <strong>π’ Your Business:</strong> {self.business_info['name']}<br> <strong>π Business Phone:</strong> {self.business_info['phone']}<br> <strong>π€ AI Phone:</strong> {self.business_info['twilio_phone']}<br> <strong>π Service Area:</strong> {self.business_info['service_area']} </div> </div> """ else: return f""" <div style="background: #ef4444; color: white; padding: 2rem; border-radius: 15px; text-align: center;"> <h3 style="margin: 0 0 1rem 0;">π΄ COMPLETE AI SYSTEM POWERED OFF</h3> <p style="margin: 0 0 1rem 0;">Complete AI system powered off (monitoring continues)</p> <p style="margin: 0;"><strong>Note:</strong> Webhook server and system monitoring continue running</p> </div> """ # Connect power toggle power_toggle.change( fn=mock_power_toggle, inputs=[power_toggle], outputs=[power_status_display] ) # FOOTER (Exact replica) gr.HTML(f""" <div style="text-align: center; padding: 3rem; margin-top: 4rem; border-top: 2px solid #e5e7eb; color: #6b7280;"> <h3 style="color: #1e3a8a;">πβ‘ {self.business_info['name']} - COMPLETE AI System</h3> <p><strong>π₯ ALL FEATURES IMPLEMENTED β’ Real Backend Control β’ Live Operations β’ Zero GPU Powered</strong></p> <div style="display: flex; justify-content: center; gap: 2rem; margin: 1rem 0; flex-wrap: wrap;"> <span>π€ Owner: {self.business_info['owner']}</span> <span>π Business: {self.business_info['phone']}</span> <span>π€ AI: {self.business_info['twilio_phone']}</span> <span>π {self.business_info['service_area']}</span> <span>π€ HF Spaces</span> </div> <p><small>π Complete Implementation Date: 2025-06-13 08:32:47 | All Features Active</small></p> <p><small>Features: Live SMS/Voice Bots β’ 4 Training Methods β’ Real Analytics β’ Backend Control β’ Webhook Integration β’ Voice Processing β’ Database Logging</small></p> </div> """) return mock_app def _create_training_interface(self): """Create mock training interface""" # Training system header gr.HTML(f""" <div style="background: linear-gradient(135deg, #7c3aed, #a855f7); color: white; padding: 3rem; border-radius: 25px; text-align: center; margin-bottom: 2rem;"> <h1 style="margin: 0; font-size: 3rem;">π Complete AI Training System</h1> <h2 style="margin: 1rem 0; font-size: 1.8rem; opacity: 0.9;">{self.business_info['name']} - Professional Training</h2> <p style="margin: 1rem 0; font-size: 1.2rem;">4 Training Methods β’ Zero GPU Acceleration β’ Real Business Knowledge</p> </div> """) with gr.Tabs(): # Customer Simulation Training with gr.Tab("π Customer Simulation"): gr.HTML(""" <div style="background: #fef3c7; border: 2px solid #f59e0b; border-radius: 15px; padding: 2rem; margin: 2rem 0;"> <h3 style="color: #92400e; margin: 0 0 1rem 0;">π Customer Simulation Training</h3> <p style="color: #92400e; margin: 0 0 1rem 0;"> <strong>How it works:</strong> You act like different types of customers, and the AI learns how Jay would respond. </p> <p style="color: #92400e; margin: 0;"> <strong>Difficulty:</strong> Beginner | <strong>Time:</strong> 15-30 minutes | <strong>Goal:</strong> Teach natural customer responses </p> </div> """) simulation_scenario = gr.Dropdown( choices=["Price Shopping Customer", "Urgent Booking Customer", "Quality-Focused Customer", "First-Time Customer"], label="π Choose Customer Scenario", value="Price Shopping Customer" ) customer_message = gr.Textbox( label="π¬ Your Customer Message (Act like the customer)", placeholder="Example: Hi, how much do you charge for a car wash?", lines=3 ) generate_response_btn = gr.Button("π€ Generate AI Response", variant="primary") ai_response_output = gr.Textbox( label="π€ AI Response (What the AI would say to this customer)", value="Hi! Thanks for reaching out to Jay's Mobile Wash! For a basic car wash, we charge $60 for cars and $70 for SUVs. This includes exterior wash, dry, and basic interior cleaning. Would you like to hear about our other packages?", interactive=False, lines=4 ) your_feedback = gr.Textbox( label="βοΈ Your Expert Feedback (How should Jay actually respond?)", placeholder="Example: The AI should also mention our premium wax service and ask about their location...", lines=4 ) response_rating = gr.Slider( minimum=1, maximum=10, value=8, step=1, label="β Rate AI Response (1=Poor, 10=Perfect)" ) save_simulation_btn = gr.Button("πΎ Save Training Data", variant="secondary") def mock_generate_ai_response(customer_msg, scenario): responses = [ f"Hi! Thanks for contacting Jay's Mobile Wash! For {scenario.lower()}, I'd recommend our premium package at $130 for cars. This includes complete wash, wax, and interior detail. What type of vehicle do you have?", f"Hello! I'm Jay's AI assistant. Based on your message about {customer_msg[:30]}..., I can help you with pricing and scheduling. Our service area covers {self.business_info['service_area']}. When would you like service?", f"Hi there! Thanks for reaching out to {self.business_info['name']}! I can see you're interested in {scenario.lower()}. Our hours are {self.business_info['hours']}. How can I help you today?" ] return random.choice(responses) def mock_save_training(): return """ <div style="background: #10b981; color: white; padding: 1.5rem; border-radius: 10px; text-align: center;"> <h4 style="margin: 0 0 1rem 0;">β
Training Data Saved Successfully!</h4> <p style="margin: 0;">Your feedback will help improve AI responses for similar customer interactions.</p> </div> """ generate_response_btn.click( fn=mock_generate_ai_response, inputs=[customer_message, simulation_scenario], outputs=[ai_response_output] ) save_simulation_btn.click( fn=mock_save_training, outputs=[gr.HTML()] ) # AI Questioning Training with gr.Tab("π€ AI Questioning"): gr.HTML(""" <div style="background: #e0f2fe; border: 2px solid #0891b2; border-radius: 15px; padding: 2rem; margin: 2rem 0;"> <h3 style="color: #164e63; margin: 0 0 1rem 0;">π€ AI Questioning Session</h3> <p style="color: #164e63; margin: 0 0 1rem 0;"> <strong>How it works:</strong> The AI asks you business questions, and learns from your expert answers. </p> <p style="color: #164e63; margin: 0;"> <strong>Difficulty:</strong> Intermediate | <strong>Time:</strong> 20-40 minutes | <strong>Goal:</strong> Extract business expertise </p> </div> """) questioning_topic = gr.Dropdown( choices=["Service Differentiation", "Customer Service Excellence", "Booking and Scheduling", "Technical Knowledge"], label="π Choose Learning Topic", value="Service Differentiation" ) start_questioning_btn = gr.Button("π― Start AI Questioning Session", variant="primary") ai_question = gr.HTML(""" <div style="background: #0891b2; color: white; padding: 2rem; border-radius: 15px; margin: 1rem 0;"> <h4 style="margin: 0 0 1rem 0;">π€ AI Question 1 of 5</h4> <p style="margin: 0; font-size: 1.2rem;">What makes Jay's Mobile Wash different from your competitors?</p> </div> """) expert_answer = gr.Textbox( label="π§ Your Expert Answer (Share your business knowledge)", placeholder="Share your professional experience and knowledge...", lines=5 ) next_question_btn = gr.Button("β‘οΈ Next Question", variant="secondary") def mock_next_question(): questions = [ "How do you handle difficult or unhappy customers?", "What's your process when a customer isn't satisfied?", "What information do you need to provide an accurate quote?", "How do you handle different paint types or vehicle conditions?" ] return f""" <div style="background: #0891b2; color: white; padding: 2rem; border-radius: 15px; margin: 1rem 0;"> <h4 style="margin: 0 0 1rem 0;">π€ AI Question {random.randint(2,5)} of 5</h4> <p style="margin: 0; font-size: 1.2rem;">{random.choice(questions)}</p> </div> """ next_question_btn.click( fn=mock_next_question, outputs=[ai_question] ) # Conversation Practice with gr.Tab("π¬ Conversation Practice"): gr.HTML(""" <div style="background: #f0fdf4; border: 2px solid #059669; border-radius: 15px; padding: 2rem; margin: 2rem 0;"> <h3 style="color: #065f46; margin: 0 0 1rem 0;">π¬ Conversation Practice</h3> <p style="color: #065f46; margin: 0 0 1rem 0;"> <strong>How it works:</strong> Practice realistic customer conversations with back-and-forth dialogue. </p> <p style="color: #065f46; margin: 0;"> <strong>Difficulty:</strong> Advanced | <strong>Time:</strong> 30-45 minutes | <strong>Goal:</strong> Master conversation flow </p> </div> """) conversation_type = gr.Dropdown( choices=["Phone Call Simulation", "SMS Conversation Chain", "Objection Handling Practice"], label="π Choose Conversation Type", value="Phone Call Simulation" ) start_conversation_btn = gr.Button("π¬ Start Conversation Practice", variant="primary") conversation_history = gr.HTML(""" <div style="background: white; border-radius: 15px; padding: 1rem; margin: 1rem 0; max-height: 400px; overflow-y: auto;"> <h4 style="color: #059669; margin: 0 0 1rem 0;">π¬ Conversation Practice</h4> <div style="background: #f0f9ff; padding: 1rem; border-radius: 10px; margin: 0.5rem 0; border-left: 4px solid #0891b2;"> <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem;"> <strong style="color: #0891b2;">Customer</strong> <small style="color: #6b7280;">14:32</small> </div> <p style="margin: 0; color: #374151;">Hi, I'm interested in getting my car detailed. Can you tell me about your services?</p> </div> <div style="background: #f0fdf4; padding: 1rem; border-radius: 10px; margin: 0.5rem 0; border-left: 4px solid #059669;"> <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem;"> <strong style="color: #059669;">Jay (You)</strong> <small style="color: #6b7280;">14:33</small> </div> <p style="margin: 0; color: #374151;">Hi! Thanks for reaching out to Jay's Mobile Wash! We offer three main packages...</p> </div> </div> """) your_message = gr.Textbox( label="π¬ Your Message (Continue the conversation)", placeholder="Type your response as Jay...", lines=3 ) send_message_btn = gr.Button("π€ Send Message", variant="secondary") # Voice Scenario Training with gr.Tab("π€ Voice Scenario Training"): gr.HTML(""" <div style="background: #fdf2f8; border: 2px solid #ec4899; border-radius: 15px; padding: 2rem; margin: 2rem 0;"> <h3 style="color: #831843; margin: 0 0 1rem 0;">π€ Voice Scenario Training</h3> <p style="color: #831843; margin: 0 0 1rem 0;"> <strong>How it works:</strong> Train with real voice input using microphone and Zero GPU processing. </p> <p style="color: #831843; margin: 0;"> <strong>Difficulty:</strong> Expert | <strong>Time:</strong> 20-45 minutes | <strong>Equipment:</strong> Microphone required </p> </div> """) voice_scenario = gr.Dropdown( choices=["Phone Call Handling", "Difficult Customer", "Technical Questions", "Booking Process"], label="π€ Choose Voice Scenario", value="Phone Call Handling" ) audio_input = gr.Audio( label="π€ Record Your Voice (Practice scenario)", type="numpy" ) process_voice_btn = gr.Button("π Process Voice Input", variant="primary") voice_analysis = gr.HTML(""" <div style="background: #f8fafc; padding: 1rem; border-radius: 10px; margin: 1rem 0;"> <h4 style="color: #374151;">π€ Voice Analysis Results</h4> <p><strong>Transcription:</strong> "Hi, thank you for calling Jay's Mobile Wash, how can I help you today?"</p> <p><strong>Confidence:</strong> 94.2%</p> <p><strong>Speaking Speed:</strong> Natural (145 WPM)</p> <p><strong>Tone Analysis:</strong> Professional, Friendly</p> </div> """) ai_voice_response = gr.Audio( label="π AI Voice Response", value=None ) def _create_analytics_interface(self): """Create mock analytics interface""" # Analytics header gr.HTML(f""" <div style="background: linear-gradient(135deg, #ea580c, #f97316); color: white; padding: 3rem; border-radius: 25px; text-align: center; margin-bottom: 2rem;"> <h1 style="margin: 0; font-size: 3rem;">π Analytics Dashboard</h1> <h2 style="margin: 1rem 0; font-size: 1.8rem; opacity: 0.9;">{self.business_info['name']} - Performance Intelligence</h2> <p style="margin: 1rem 0; font-size: 1.2rem;">Live Data β’ Performance Metrics β’ AI Training Analytics</p> </div> """) # Refresh controls with gr.Row(): refresh_btn = gr.Button("π Refresh All Data", variant="primary") last_updated = gr.HTML(f""" <div style="background: #10b981; color: white; padding: 1rem; border-radius: 10px; text-align: center;"> <strong>π Data refreshed at {datetime.now().strftime('%H:%M:%S')} PST</strong> </div> """) with gr.Tabs(): # System Overview with gr.Tab("π― System Overview"): with gr.Row(): with gr.Column(scale=1): gr.HTML(f""" <div style="background: #10b981; color: white; padding: 2rem; border-radius: 15px; text-align: center;"> <h3 style="margin: 0 0 1rem 0;">π― System Performance Score</h3> <div style="font-size: 3rem; font-weight: bold; margin: 1rem 0;">{self.mock_analytics['performance_score']}%</div> <p style="margin: 0; opacity: 0.9;">SMS, Calls & AI Training performance</p> </div> """) with gr.Column(scale=1): gr.HTML(""" <div style="background: #10b981; color: white; padding: 2rem; border-radius: 15px; text-align: center;"> <h3 style="margin: 0 0 1rem 0;">π System Health</h3> <div style="font-size: 3rem; margin: 1rem 0;">π</div> <p style="margin: 0; opacity: 0.9; text-transform: capitalize;">Healthy</p> </div> """) with gr.Row(): gr.HTML(f""" <div style="background: #3b82f6; color: white; padding: 2rem; border-radius: 15px; text-align: center;"> <h3 style="margin: 0 0 1rem 0;">π Total Interactions (30 days)</h3> <div style="font-size: 3rem; font-weight: bold; margin: 1rem 0;">{self.mock_analytics['sms_total'] + self.mock_analytics['calls_total']}</div> <div style="display: flex; justify-content: space-around; margin-top: 1rem;"> <div>π± SMS: {self.mock_analytics['sms_total']}</div> <div>π Calls: {self.mock_analytics['calls_total']}</div> </div> </div> """) gr.HTML(f""" <div style="background: #7c3aed; color: white; padding: 2rem; border-radius: 15px; text-align: center;"> <h3 style="margin: 0 0 1rem 0;">β‘ Live System Status</h3> <div style="font-size: 2rem; font-weight: bold; margin: 1rem 0;">12</div> <p style="margin: 0.5rem 0;">Interactions in last 24 hours</p> <small style="opacity: 0.8;">Last activity: 2025-06-13 08:25:32</small> </div> """) # SMS Analytics with gr.Tab("π± SMS Analytics"): with gr.Row(): gr.HTML(f""" <div style="background: #059669; color: white; padding: 2rem; border-radius: 15px; text-align: center;"> <h3 style="margin: 0 0 1rem 0;">π± SMS Volume (30 days)</h3> <div style="font-size: 3rem; font-weight: bold; margin: 1rem 0;">{self.mock_analytics['sms_total']}</div> <p style="margin: 0; opacity: 0.9;">Total SMS interactions</p> </div> """) gr.HTML(f""" <div style="background: #0891b2; color: white; padding: 2rem; border-radius: 15px; text-align: center;"> <h3 style="margin: 0 0 1rem 0;">π Response Rate</h3> <div style="font-size: 3rem; font-weight: bold; margin: 1rem 0;">{self.mock_analytics['response_rate']}%</div> <p style="margin: 0; opacity: 0.9;">Customer response rate</p> </div> """) gr.HTML(""" <div style="background: white; padding: 2rem; border-radius: 15px; margin: 1rem 0; border: 2px solid #e5e7eb;"> <h4 style="color: #374151; margin: 0 0 1rem 0;">π Top Customer Keywords (Last 7 days)</h4> <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem;"> <div style="background: #f0f9ff; padding: 1rem; border-radius: 8px;"> <strong>price</strong> - 34 mentions </div> <div style="background: #f0f9ff; padding: 1rem; border-radius: 8px;"> <strong>schedule</strong> - 28 mentions </div> <div style="background: #f0f9ff; padding: 1rem; border-radius: 8px;"> <strong>wash</strong> - 45 mentions </div> <div style="background: #f0f9ff; padding: 1rem; border-radius: 8px;"> <strong>detail</strong> - 19 mentions </div> </div> </div> """) # Call Analytics with gr.Tab("π Call Analytics"): with gr.Row(): gr.HTML(f""" <div style="background: #dc2626; color: white; padding: 2rem; border-radius: 15px; text-align: center;"> <h3 style="margin: 0 0 1rem 0;">π Call Volume (30 days)</h3> <div style="font-size: 3rem; font-weight: bold; margin: 1rem 0;">{self.mock_analytics['calls_total']}</div> <p style="margin: 0; opacity: 0.9;">Total call interactions</p> </div> """) gr.HTML(f""" <div style="background: #ea580c; color: white; padding: 2rem; border-radius: 15px; text-align: center;"> <h3 style="margin: 0 0 1rem 0;">β±οΈ Avg Duration</h3> <div style="font-size: 3rem; font-weight: bold; margin: 1rem 0;">{self.mock_analytics['avg_call_duration']}s</div> <p style="margin: 0; opacity: 0.9;">Average call length</p> </div> """) gr.HTML(""" <div style="background: white; padding: 2rem; border-radius: 15px; margin: 1rem 0; border: 2px solid #e5e7eb;"> <h4 style="color: #374151; margin: 0 0 1rem 0;">π Call Outcomes (Last 30 days)</h4> <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem;"> <div style="background: #d1fae5; padding: 1rem; border-radius: 8px; border-left: 4px solid #10b981;"> <strong>Completed</strong><br> <span style="font-size: 1.5rem;">28 calls</span> </div> <div style="background: #fef3c7; padding: 1rem; border-radius: 8px; border-left: 4px solid #f59e0b;"> <strong>Transferred</strong><br> <span style="font-size: 1.5rem;">8 calls</span> </div> <div style="background: #fee2e2; padding: 1rem; border-radius: 8px; border-left: 4px solid #ef4444;"> <strong>No Answer</strong><br> <span style="font-size: 1.5rem;">2 calls</span> </div> </div> </div> """) # AI Training Analytics with gr.Tab("π AI Training Analytics"): gr.HTML(""" <div style="background: #fef3c7; border: 2px solid #f59e0b; border-radius: 15px; padding: 2rem; margin: 2rem 0;"> <h3 style="color: #92400e; margin: 0 0 1rem 0;">π§ AI Training Intelligence</h3> <p style="color: #92400e; margin: 0 0 1rem 0;"> <strong>Training Purpose:</strong> These sessions teach your SMS and Voice bots how to respond like YOU would. </p> <p style="color: #92400e; margin: 0;"> Each training method improves bot intelligence, conversation skills, and business knowledge. </p> </div> """) with gr.Row(): gr.HTML(f""" <div style="background: #7c3aed; color: white; padding: 2rem; border-radius: 15px; text-align: center;"> <h3 style="margin: 0 0 1rem 0;">π Training Sessions</h3> <div style="font-size: 3rem; font-weight: bold; margin: 1rem 0;">{self.mock_analytics['training_sessions']}</div> <p style="margin: 0; opacity: 0.9;">Total sessions completed</p> </div> """) gr.HTML(""" <div style="background: #0891b2; color: white; padding: 2rem; border-radius: 15px; text-align: center;"> <h3 style="margin: 0 0 1rem 0;">β Training Quality</h3> <div style="font-size: 3rem; font-weight: bold; margin: 1rem 0;">8.4/10</div> <p style="margin: 0; opacity: 0.9;">Average quality rating</p> </div> """) gr.HTML(""" <div style="background: white; padding: 2rem; border-radius: 15px; margin: 1rem 0; border: 2px solid #e5e7eb;"> <h4 style="color: #374151; margin: 0 0 1rem 0;">π Training Methods Performance</h4> <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem;"> <div style="background: #fef3c7; padding: 1rem; border-radius: 8px; border-left: 4px solid #f59e0b;"> <strong>π Customer Simulation</strong><br> <span>8 sessions β’ 8.7/10 rating</span> </div> <div style="background: #e0f2fe; padding: 1rem; border-radius: 8px; border-left: 4px solid #0891b2;"> <strong>π€ AI Questioning</strong><br> <span>6 sessions β’ 8.2/10 rating</span> </div> <div style="background: #f0fdf4; padding: 1rem; border-radius: 8px; border-left: 4px solid #059669;"> <strong>π¬ Conversation Practice</strong><br> <span>7 sessions β’ 8.5/10 rating</span> </div> <div style="background: #fdf2f8; padding: 1rem; border-radius: 8px; border-left: 4px solid #ec4899;"> <strong>π€ Voice Training</strong><br> <span>4 sessions β’ 8.1/10 rating</span> </div> </div> </div> """) def mock_refresh(): return f""" <div style="background: #10b981; color: white; padding: 1rem; border-radius: 10px; text-align: center;"> <strong>π Data refreshed at {datetime.now().strftime('%H:%M:%S')} PST</strong> </div> """ refresh_btn.click(fn=mock_refresh, outputs=[last_updated]) def _create_settings_interface(self): """Create mock settings interface""" # Settings header gr.HTML(f""" <div style="background: linear-gradient(135deg, #059669, #10b981); color: white; padding: 3rem; border-radius: 25px; text-align: center; margin-bottom: 2rem;"> <h1 style="margin: 0; font-size: 3rem;">βοΈ Complete Settings & Backend Control</h1> <h2 style="margin: 1rem 0; font-size: 1.8rem; opacity: 0.9;">Real System Configuration β’ Live Control β’ Backend Access</h2> <p style="margin: 1rem 0; font-size: 1.2rem;">Configure your AI system with real backend control and live updates</p> </div> """) with gr.Tabs(): # Business Information with gr.Tab("π’ Business Information"): gr.HTML(""" <div style="background: #f0fdf4; border: 2px solid #059669; border-radius: 15px; padding: 2rem; margin: 2rem 0;"> <h3 style="color: #065f46; margin: 0 0 1rem 0;">π’ Business Information Settings</h3> <p style="color: #065f46; margin: 0;"> Update your business details that customers see in AI responses. Changes are applied immediately to live system. </p> </div> """) with gr.Row(): with gr.Column(scale=1): business_name = gr.Textbox( label="π’ Business Name", value=self.business_info['name'], placeholder="Your business name" ) business_phone = gr.Textbox( label="π Business Phone (Your personal number)", value=self.business_info['phone'], placeholder="562-228-9429" ) business_email = gr.Textbox( label="π§ Business Email", value=self.business_info['email'], placeholder="your@email.com" ) with gr.Column(scale=1): business_website = gr.Textbox( label="π Website", value=self.business_info['website'], placeholder="yourwebsite.com" ) business_instagram = gr.Textbox( label="π± Instagram Handle", value=self.business_info['instagram'], placeholder="@yourbusiness" ) service_area = gr.Textbox( label="π Service Area", value=self.business_info['service_area'], placeholder="Your service area" ) save_business_btn = gr.Button("πΎ Save Business Information", variant="primary") def mock_save_business(): return """ <div style="background: #10b981; color: white; padding: 1.5rem; border-radius: 10px; text-align: center;"> <h4 style="margin: 0 0 1rem 0;">β
Business Information Saved!</h4> <p style="margin: 0;">AI responses will now use your updated business information.</p> </div> """ save_business_btn.click(fn=mock_save_business, outputs=[gr.HTML()]) # Service Packages & Pricing with gr.Tab("π° Service Packages & Pricing"): gr.HTML(""" <div style="background: #fff7ed; border: 2px solid #ea580c; border-radius: 15px; padding: 2rem; margin: 2rem 0;"> <h3 style="color: #9a3412; margin: 0 0 1rem 0;">π° Service Packages & Pricing</h3> <p style="color: #9a3412; margin: 0;"> Configure your service packages and pricing. AI will quote these exact prices to customers. Updates are applied immediately to live responses. </p> </div> """) # Basic Package gr.HTML("<h4 style='color: #ea580c; margin: 2rem 0 1rem 0;'>π Basic Package</h4>") with gr.Row(): basic_car_price = gr.Number( label="π° Car Price ($)", value=60, minimum=0 ) basic_suv_price = gr.Number( label="π° SUV/Truck Price ($)", value=70, minimum=0 ) basic_description = gr.Textbox( label="π Basic Package Description", value="Exterior wash, dry, basic interior clean, tire shine", lines=2 ) # Premium Package gr.HTML("<h4 style='color: #ea580c; margin: 2rem 0 1rem 0;'>β¨ Premium Package</h4>") with gr.Row(): premium_car_price = gr.Number( label="π° Car Price ($)", value=130, minimum=0 ) premium_suv_price = gr.Number( label="π° SUV/Truck Price ($)", value=140, minimum=0 ) premium_description = gr.Textbox( label="π Premium Package Description", value="Complete wash, wax, interior detail, tire shine, dashboard treatment", lines=2 ) # Ultimate Package gr.HTML("<h4 style='color: #ea580c; margin: 2rem 0 1rem 0;'>π Ultimate Package</h4>") with gr.Row(): ultimate_car_price = gr.Number( label="π° Car Price ($)", value=200, minimum=0 ) ultimate_suv_price = gr.Number( label="π° SUV/Truck Price ($)", value=210, minimum=0 ) ultimate_description = gr.Textbox( label="π Ultimate Package Description", value="Full detail, ceramic coating, paint protection, premium interior, engine bay cleaning", lines=2 ) save_pricing_btn = gr.Button("πΎ Save Pricing Configuration", variant="primary") def mock_save_pricing(): return """ <div style="background: #10b981; color: white; padding: 1.5rem; border-radius: 10px; text-align: center;"> <h4 style="margin: 0 0 1rem 0;">β
Pricing Configuration Saved!</h4> <p style="margin: 0;">AI will now quote your updated prices to customers immediately.</p> </div> """ save_pricing_btn.click(fn=mock_save_pricing, outputs=[gr.HTML()]) # Twilio Integration with gr.Tab("π Twilio Integration"): gr.HTML(f""" <div style="background: #ede9fe; border: 2px solid #7c3aed; border-radius: 15px; padding: 2rem; margin: 2rem 0;"> <h3 style="color: #5b21b6; margin: 0 0 1rem 0;">π Twilio Integration Settings</h3> <p style="color: #5b21b6; margin: 0 0 1rem 0;"> Configure your Twilio integration for SMS and Voice bots. Current Status: π’ Connected </p> <p style="color: #5b21b6; margin: 0;"> β οΈ Changes to Twilio settings require system restart to take effect. </p> </div> """) with gr.Row(): with gr.Column(scale=1): twilio_sid_display = gr.Textbox( label="π Account SID", value="Ac48c581...a1ba", interactive=False ) twilio_phone_display = gr.Textbox( label="π Twilio Phone Number", value="+18557059842", interactive=False ) with gr.Column(scale=1): forwarding_phone = gr.Textbox( label="π Call Forwarding Number (Your personal phone)", value="562-228-9429", placeholder="Your phone number where calls are forwarded" ) with gr.Row(): test_twilio_btn = gr.Button("π§ͺ Test Twilio Connection", variant="secondary") configure_webhooks_btn = gr.Button("π Configure Webhooks", variant="secondary") send_test_sms_btn = gr.Button("π± Send Test SMS", variant="secondary") def mock_test_twilio(): return f""" <div style="background: #10b981; color: white; padding: 1.5rem; border-radius: 10px;"> <h4 style="margin: 0 0 1rem 0;">β
Twilio Connection Successful!</h4> <p style="margin: 0.5rem 0;"><strong>Account:</strong> Jay's Mobile Wash</p> <p style="margin: 0.5rem 0;"><strong>Status:</strong> Active</p> <p style="margin: 0.5rem 0;"><strong>Phone Numbers:</strong> 1</p> <p style="margin: 0;"><strong>Balance:</strong> $25.43</p> </div> """ test_twilio_btn.click(fn=mock_test_twilio, outputs=[gr.HTML()]) def _create_system_status_interface(self): """Create mock system status interface""" gr.HTML(f""" <div class="feature-card" style="padding: 2rem; border-radius: 15px; margin: 1rem 0;"> <h3 style="color: #1e3a8a; margin: 0 0 1rem 0;">π§ Complete System Status</h3> <h4 style="color: #374151; margin: 1.5rem 0 1rem 0;">π System Health:</h4> <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem;"> <div style="background: #d1fae5; padding: 1rem; border-radius: 8px; border-left: 4px solid #10b981;"> <strong>System Uptime</strong><br> {self.system_uptime}<br> <small>Started: 2025-06-13 06:17:32 UTC</small> </div> <div style="background: #ddd6fe; padding: 1rem; border-radius: 8px; border-left: 4px solid #7c3aed;"> <strong>Components Status</strong><br> 6/6 Active<br> <small>All core systems operational</small> </div> <div style="background: #fef3c7; padding: 1rem; border-radius: 8px; border-left: 4px solid #f59e0b;"> <strong>Platform</strong><br> Hugging Face Spaces<br> <small>Zero GPU enabled</small> </div> </div> <h4 style="color: #374151; margin: 1.5rem 0 1rem 0;">π’ Business Configuration:</h4> <div style="background: #f8fafc; padding: 1rem; border-radius: 8px;"> <p><strong>Business Name:</strong> {self.business_info['name']}</p> <p><strong>Business Phone:</strong> {self.business_info['phone']}</p> <p><strong>AI Phone:</strong> {self.business_info['twilio_phone']}</p> <p><strong>Service Area:</strong> {self.business_info['service_area']}</p> <p><strong>Hours:</strong> {self.business_info['hours']}</p> <p><strong>Space URL:</strong> huggingface.co/spaces/jjmandog/jayscallcenter</p> </div> <h4 style="color: #374151; margin: 1.5rem 0 1rem 0;">πΎ Database Optimization:</h4> <div style="background: #f0fdf4; padding: 1rem; border-radius: 8px; border-left: 4px solid #059669;"> <p><strong>Database Size:</strong> 47.2 MB / 800 MB limit</p> <p><strong>Usage:</strong> 5.9% (Healthy)</p> <p><strong>Last Cleanup:</strong> 2025-06-13 06:00:00 UTC</p> <p><strong>Records:</strong> SMS: 142, Calls: 38, Training: 25</p> <p><strong>Retention:</strong> 30 days detailed, <h4 style="color: #374151; margin: 1.5rem 0 1rem 0;">πΎ Database Optimization:</h4> <div style="background: #f0fdf4; padding: 1rem; border-radius: 8px; border-left: 4px solid #059669;"> <p><strong>Database Size:</strong> 47.2 MB / 800 MB limit</p> <p><strong>Usage:</strong> 5.9% (Healthy)</p> <p><strong>Last Cleanup:</strong> 2025-06-13 06:00:00 UTC</p> <p><strong>Records:</strong> SMS: 142, Calls: 38, Training: 25</p> <p><strong>Retention:</strong> 30 days detailed, 90 days summary</p> </div> <div style="background: #1e3a8a; color: white; padding: 1.5rem; border-radius: 10px; margin-top: 2rem; text-align: center;"> <h4 style="margin: 0 0 1rem 0;">π System Ready for Live Operation!</h4> <p style="margin: 0;">Complete AI system with real backend control, live integrations, and Zero GPU processing.</p> </div> </div> """) # Create the complete mock UI mock_ui = MockUIPreview() app = mock_ui.create_mock_ui() # If running directly, launch the mock UI if __name__ == "__main__": print("π Launching Mock UI Preview...") print(f"π€ User: jjmandog") print(f"π
Date: 2025-06-13 08:36:49") print("π± This is a visual preview - no backend functionality") print("π― Perfect for testing UI design and layout") app.launch( server_name="0.0.0.0", server_port=7860, share=False, show_tips=False, show_error=True, auth=None, prevent_thread_lock=False, quiet=False )
|