Download app.py from SaintZion/Nebula: direct link, hf CLI and curl.
- Browser
- Download file 27.4 kB
-
https://huggingface.co/spaces/SaintZion/Nebula/resolve/main/app.py
- Command line
-
hf download hf://spaces/SaintZion/Nebula/app.py
-
curl -L -o app.py https://huggingface.co/spaces/SaintZion/Nebula/resolve/main/app.py
27.4 kB
| import gradio as gr | |
| from typing import Dict, List, Tuple, Optional | |
| import re | |
| from datetime import datetime, timedelta | |
| class MalfactorBot: | |
| def __init__(self): | |
| self.contact_info = { | |
| 'email': 'admin@malfactorlabs.co.za', | |
| 'phone': '0795076694' | |
| } | |
| self.conversation_state = {} | |
| self.qa_database = self._initialize_qa_database() | |
| def _initialize_qa_database(self) -> Dict: | |
| """Initialize the Q&A database with all service information.""" | |
| return { | |
| 'website': { | |
| 'packages': { | |
| 'Business': { | |
| 'price': 600, | |
| 'features': [ | |
| 'Professional single-page website', | |
| 'Basic SEO setup', | |
| 'Contact form integration', | |
| '1GB hosting included' | |
| ], | |
| 'timeline': '5-7 days' | |
| }, | |
| 'Business Pro': { | |
| 'price': 660, | |
| 'features': [ | |
| '4-5 page professional website', | |
| 'Enhanced SEO & Analytics', | |
| 'Social media integration', | |
| 'Multiple revision rounds' | |
| ], | |
| 'timeline': '7-10 days' | |
| }, | |
| 'E-Commerce': { | |
| 'price': 760, | |
| 'features': [ | |
| 'Full online store functionality', | |
| 'Secure payment gateway', | |
| 'Inventory management', | |
| 'Product reviews system' | |
| ], | |
| 'timeline': '10-15 days' | |
| } | |
| }, | |
| 'qa': { | |
| # All website Q&A from the provided list | |
| 'contract': 'No, our plans are month-to-month, and you can cancel anytime.', | |
| 'setup_fee': 'No setup fee; the monthly price covers everything.', | |
| 'guarantee': 'Yes, we offer a 30-day money-back guarantee on our monthly plans.', | |
| 'domain': 'Domain purchase is separate but we assist with setup.', | |
| 'ssl': 'Yes, all websites include SSL certificates.', | |
| 'hosting': 'We provide 1GB hosting with email support and regular backups.' | |
| } | |
| }, | |
| 'social_media': { | |
| 'pricing': { | |
| '1-5': 450, | |
| '6-10': 425, | |
| '11+': 400 | |
| }, | |
| 'features': [ | |
| 'Professional content writing', | |
| 'Custom graphic design', | |
| 'Strategic hashtags', | |
| 'Post scheduling', | |
| 'Engagement monitoring' | |
| ], | |
| 'platforms': [ | |
| 'Instagram', | |
| 'Facebook', | |
| 'LinkedIn', | |
| 'Twitter (X)', | |
| 'TikTok' | |
| ] | |
| }, | |
| 'branding': { | |
| 'packages': { | |
| 'Basic': { | |
| 'price': 1200, | |
| 'features': [ | |
| 'Professional logo', | |
| 'Business cards', | |
| 'Email signature' | |
| ], | |
| 'timeline': '5-7 days' | |
| }, | |
| 'Standard': { | |
| 'price': 1800, | |
| 'features': [ | |
| 'Everything in Basic', | |
| 'Social media templates', | |
| 'Presentation template' | |
| ], | |
| 'timeline': '7-10 days' | |
| }, | |
| 'Premium': { | |
| 'price': 2500, | |
| 'features': [ | |
| 'Everything in Standard', | |
| 'Marketing collateral', | |
| 'Brand guidelines' | |
| ], | |
| 'timeline': '10-14 days' | |
| } | |
| } | |
| }, | |
| 'logo': { | |
| 'price': 850, | |
| 'features': [ | |
| '2 concept designs', | |
| '3 revision rounds', | |
| 'Multiple file formats (PNG, JPG, PDF, AI, SVG, EPS)', | |
| '5-7 business days turnaround' | |
| ] | |
| } | |
| } | |
| def calculate_social_media_roi(self, current_followers: int, post_frequency: str) -> str: | |
| """Calculate potential ROI for social media services.""" | |
| # Extract pricing tier based on frequency | |
| posts_per_month = { | |
| '1-5': 3, | |
| '6-10': 8, | |
| '11+': 12 | |
| } | |
| num_posts = posts_per_month.get(post_frequency, 3) | |
| price_per_post = self.qa_database['social_media']['pricing'][post_frequency] | |
| # Estimated growth calculations | |
| monthly_investment = num_posts * price_per_post | |
| estimated_growth_rate = 0.15 * num_posts # 15% growth per post | |
| potential_new_followers = int(current_followers * (1 + estimated_growth_rate)) | |
| return f"""Based on your current {current_followers} followers and choosing our {post_frequency} posts package: | |
| π Monthly Investment: R{monthly_investment} | |
| π― Estimated Monthly Posts: {num_posts} | |
| π Potential Growth: | |
| β’ Current Followers: {current_followers} | |
| β’ Projected Followers: {potential_new_followers} (β{int(estimated_growth_rate*100)}%) | |
| Our {post_frequency} posts package at R{price_per_post}/post includes: | |
| """ | |
| def get_initial_message(self) -> str: | |
| """Return the welcome message with main options.""" | |
| return """Welcome to Malfactor Labs! How can I help you today? I can: | |
| 1. Calculate potential ROI for your business | |
| 2. Explain our service packages: | |
| β’ Website development | |
| β’ Social media management | |
| β’ Branding solutions | |
| 3. Schedule a free consultation | |
| 4. Provide pricing information | |
| What would you like to know more about?""" | |
| def _extract_numbers(self, text: str) -> List[float]: | |
| """Extract numerical values from text.""" | |
| numbers = re.findall(r'\d+(?:\.\d+)?', text) | |
| return [float(num) for num in numbers] | |
| def respond(self, message: str, history: List[Tuple[str, str]]) -> str: | |
| """Generate responses based on user input and conversation state.""" | |
| message = message.lower() | |
| # Initial welcome message | |
| if not history: | |
| return self.get_initial_message() | |
| # Track conversation state | |
| if len(history) >= 1: | |
| last_bot_message = history[-1][1].lower() | |
| user_input = message.lower() | |
| # After asking about monthly revenue | |
| if "what's your current monthly revenue?" in last_bot_message: | |
| revenue_match = re.search(r'r?(\d+[,\d]*)', user_input.replace(' ', '')) | |
| if revenue_match: | |
| return """Which service are you interested in? | |
| 1. Website Development | |
| 2. Social Media Management | |
| 3. Branding Solutions | |
| Please choose a service and I'll help calculate your potential growth.""" | |
| # After service selection | |
| if "please choose a service" in last_bot_message: | |
| if 'social' in user_input or '2' in user_input: | |
| return """For social media management, could you tell me your current following on your main platform? (e.g., Instagram or Facebook followers)""" | |
| elif 'web' in user_input or '1' in user_input: | |
| return """For website development, do you currently have a website? If yes, what's your average monthly visitors?""" | |
| elif 'brand' in user_input or '3' in user_input: | |
| return """For branding solutions, are you starting fresh or rebranding? This will help me suggest the most suitable package.""" | |
| # After asking about social media following | |
| if "current following on your main platform" in last_bot_message: | |
| followers_match = re.search(r'\d+', user_input) | |
| if followers_match: | |
| followers = int(followers_match.group()) | |
| return self._calculate_social_media_growth(followers) | |
| # After asking about website visitors | |
| if "average monthly visitors" in last_bot_message: | |
| return self._calculate_website_growth(user_input) | |
| # After asking about branding | |
| if "starting fresh or rebranding" in last_bot_message: | |
| return self._suggest_branding_package(user_input) | |
| # After showing potential growth | |
| if "Would you like to proceed with" in last_bot_message: | |
| if any(word in user_input for word in ['yes', 'yeah', 'sure', 'okay']): | |
| return """Great! Here's how we can get started: | |
| 1. Book a free consultation | |
| 2. Email us at admin@malfactorlabs.co.za | |
| 3. Call us at 0795076694 | |
| Which option works best for you?""" | |
| # ROI calculation flow | |
| if 'roi' in message: | |
| # Initial ROI question | |
| if not history or 'current monthly revenue' not in history[-1][0].lower(): | |
| return """To help calculate your potential ROI, please tell me: | |
| What's your current monthly revenue?""" | |
| # Handle monthly revenue response | |
| if history and 'current monthly revenue' in history[-1][0].lower(): | |
| numbers = self._extract_numbers(message) | |
| if numbers: | |
| revenue = numbers[0] | |
| if revenue < 5000: | |
| return f"""Thank you for sharing that. With a monthly revenue of R{revenue}, I see great potential for growth! | |
| What channels are you currently using to reach your customers? (e.g., social media, website, word of mouth)""" | |
| elif revenue < 20000: | |
| return f"""R{revenue} is a solid foundation! To help you scale further: | |
| Are you currently active on social media or have a website for your business?""" | |
| else: | |
| return f"""Impressive! R{revenue} shows you've built a strong business. | |
| What's your biggest challenge in growing your revenue further? Is it: | |
| β’ Finding new customers | |
| β’ Converting leads to sales | |
| β’ Building brand awareness | |
| β’ Something else?""" | |
| # Handle customer count response | |
| if history and 'how many customers' in history[-1][0].lower(): | |
| numbers = self._extract_numbers(message) | |
| if numbers: | |
| customer_count = int(numbers[0]) | |
| return f"""Great! You're currently serving {customer_count} customers. | |
| How much do you usually charge for your services?""" | |
| # Handle pricing response | |
| if history and 'charge for your services' in history[-1][0].lower(): | |
| if any(word in message for word in ['varies', 'depend', 'range']): | |
| return "Could you provide an estimate range of your monthly revenue?" | |
| else: | |
| numbers = self._extract_numbers(message) | |
| if numbers: | |
| return self._generate_service_recommendations(numbers[0]) | |
| # Service inquiries | |
| if 'website' in message: | |
| return self._handle_website_inquiry(message) | |
| elif 'social' in message or 'post' in message: | |
| return self._handle_social_media_inquiry(message) | |
| elif 'brand' in message: | |
| return self._handle_branding_inquiry(message) | |
| elif 'consult' in message or 'book' in message: | |
| return self._handle_consultation_request() | |
| elif 'price' in message or 'cost' in message: | |
| return self._handle_pricing_inquiry() | |
| # Default response encouraging consultation | |
| return f"""I'd be happy to help you better understand our services! You can either: | |
| 1. Book a free consultation to discuss your needs in detail | |
| 2. Email us at {self.contact_info['email']} | |
| 3. Call us at {self.contact_info['phone']} | |
| What would work best for you?""" | |
| def _generate_service_recommendations(self, monthly_revenue: float) -> str: | |
| """Generate service recommendations based on revenue.""" | |
| recommendations = f"""Based on your monthly revenue of R{monthly_revenue}, here are our recommended services: | |
| π Website Development: | |
| β’ {self._recommend_website_package(monthly_revenue)} | |
| π± Social Media Management: | |
| β’ {self._recommend_social_package(monthly_revenue)} | |
| π¨ Branding: | |
| β’ {self._recommend_branding_package(monthly_revenue)} | |
| Would you like to discuss any of these recommendations in detail? We can schedule a free consultation to create a custom strategy for your business.""" | |
| return recommendations | |
| def _recommend_website_package(self, revenue: float) -> str: | |
| """Recommend website package based on revenue.""" | |
| if revenue < 10000: | |
| package = 'Business' | |
| elif revenue < 50000: | |
| package = 'Business Pro' | |
| else: | |
| package = 'E-Commerce' | |
| details = self.qa_database['website']['packages'][package] | |
| return f"{package} Package (R{details['price']}/month) - Perfect for your revenue level" | |
| def _recommend_social_package(self, revenue: float) -> str: | |
| """Recommend social media package based on revenue.""" | |
| if revenue < 20000: | |
| tier = '1-5' | |
| elif revenue < 100000: | |
| tier = '6-10' | |
| else: | |
| tier = '11+' | |
| price = self.qa_database['social_media']['pricing'][tier] | |
| return f"{tier} posts per month at R{price}/post for optimal engagement" | |
| def _recommend_branding_package(self, revenue: float) -> str: | |
| """Recommend branding package based on revenue.""" | |
| if revenue < 15000: | |
| package = 'Basic' | |
| elif revenue < 75000: | |
| package = 'Standard' | |
| else: | |
| package = 'Premium' | |
| details = self.qa_database['branding']['packages'][package] | |
| return f"{package} Branding Kit (R{details['price']}) - Aligned with your business scale" | |
| def _handle_website_inquiry(self, message: str) -> str: | |
| """Handle website-related questions following the script.""" | |
| if 'business' in message.lower() and 'pro' not in message.lower(): | |
| return """The Business Plan (R600/month) is perfect for businesses needing a simple online presence. Here's what's included: | |
| β’ A one-page website with a contact form | |
| β’ Basic SEO setup (optimized titles, meta descriptions, and keywords) | |
| β’ 1GB hosting and email support | |
| β’ 1 revision round | |
| This package is ideal for small businesses or startups looking for a professional online presence without complex features. Does this sound like what you need, or would you like to explore other packages like the Business Pro or E-Commerce Plan?""" | |
| elif 'pro' in message.lower(): | |
| return """The Business Pro Plan (R660/month) is designed for businesses that need a more robust website. Here's what's included: | |
| β’ A 4-5 page website | |
| β’ Enhanced SEO with keyword research and site speed optimization | |
| β’ Social media integration (linking your site to your social profiles) | |
| β’ Google Analytics setup for tracking | |
| β’ 2 revision rounds | |
| This package is ideal for agencies, consultants, or service providers who need a multi-page site with advanced features. Does this suit your business, or would you like to explore the E-Commerce Plan for selling products online?""" | |
| elif 'commerce' in message.lower() or 'ecommerce' in message.lower(): | |
| return """The E-Commerce Plan (R760/month) is perfect for businesses selling products online. Here's what's included: | |
| β’ An online store with no fixed limit on product listings (we recommend starting with up to 50 products) | |
| β’ Payment integration (PayFast, PayPal, Stripe) | |
| β’ Inventory management with low-stock alerts | |
| β’ Discount codes and promotions | |
| β’ SSL encryption and secure payment processing | |
| This package is ideal for businesses looking to scale their online sales. Does this meet your needs, or would you like to explore simpler options like the Business or Business Pro Plan?""" | |
| else: | |
| return """Great choice! We offer three website packages: | |
| πΌ Business Plan (R600/month): Single-page website with basic SEO. | |
| π Business Pro Plan (R660/month): 4-5 page website with enhanced SEO and social media integration. | |
| ποΈ E-Commerce Plan (R760/month): Online store with payment integration and inventory management. | |
| Which one would you like to learn more about?""" | |
| def _calculate_social_media_growth(self, current_followers: int) -> str: | |
| """Calculate potential social media growth based on current following.""" | |
| # Calculate potential growth for different packages | |
| growth_rates = { | |
| '1-5 posts': 0.20, # 20% monthly growth | |
| '6-10 posts': 0.35, # 35% monthly growth | |
| '11+ posts': 0.50 # 50% monthly growth | |
| } | |
| response = f"""Based on your current following of {current_followers}, here's your potential growth with our packages: | |
| π Growth Projections (3-month estimate): | |
| 1-5 posts (R450/post): | |
| β’ Potential new followers: {int(current_followers * (1 + growth_rates['1-5 posts']))} | |
| β’ Engagement increase: ~25% | |
| 6-10 posts (R425/post): | |
| β’ Potential new followers: {int(current_followers * (1 + growth_rates['6-10 posts']))} | |
| β’ Engagement increase: ~40% | |
| 11+ posts (R400/post): | |
| β’ Potential new followers: {int(current_followers * (1 + growth_rates['11+ posts']))} | |
| β’ Engagement increase: ~60% | |
| Would you like to proceed with any of these packages?""" | |
| return response | |
| def _calculate_website_growth(self, response: str) -> str: | |
| """Calculate potential website growth based on current situation.""" | |
| if 'no' in response.lower(): | |
| return """Without a website, you're missing out on potential customers! Our Business Package (R600/month) includes: | |
| β’ Professional single-page website | |
| β’ Basic SEO setup | |
| β’ Contact form integration | |
| β’ 1GB hosting | |
| Potential benefits: | |
| β’ 24/7 online presence | |
| β’ ~50% increase in lead generation | |
| β’ Professional brand image | |
| β’ Improved customer trust | |
| Would you like to proceed with our Business Package?""" | |
| else: | |
| return """Great that you already have a website! Our Business Pro Package (R660/month) can help optimize it with: | |
| β’ Enhanced SEO & Analytics | |
| β’ Social media integration | |
| β’ Multiple revision rounds | |
| β’ Performance optimization | |
| Potential benefits: | |
| β’ 2-3x increase in website traffic | |
| β’ Higher search engine rankings | |
| β’ Better conversion rates | |
| β’ Detailed analytics | |
| Would you like to proceed with our Business Pro Package?""" | |
| def _suggest_branding_package(self, response: str) -> str: | |
| """Suggest branding package based on client needs.""" | |
| if 'fresh' in response.lower() or 'start' in response.lower(): | |
| return """For a new brand, our Basic Branding Kit (R1,200) is perfect: | |
| β’ Professional logo design | |
| β’ Business cards | |
| β’ Email signature | |
| This foundation can help: | |
| β’ Establish brand recognition | |
| β’ Build customer trust | |
| β’ Create professional presence | |
| Would you like to proceed with the Basic Branding Kit?""" | |
| else: | |
| return """For rebranding, our Standard Branding Kit (R1,800) offers: | |
| β’ Everything in Basic Kit | |
| β’ Social media templates | |
| β’ Presentation template | |
| β’ Brand consistency guide | |
| This package will help: | |
| β’ Refresh your brand image | |
| β’ Maintain consistency | |
| β’ Strengthen market position | |
| Would you like to proceed with the Standard Branding Kit?""" | |
| def _handle_social_media_inquiry(self, message: str) -> str: | |
| """Handle social media-related questions following the script.""" | |
| if '1-5' in message or ('1' in message and 'post' in message): | |
| return """The 1-5 posts package (R450/post) is ideal for businesses looking to maintain a consistent social media presence without overwhelming content. Here's what's included: | |
| β’ Custom graphics and captions for each post | |
| β’ Basic hashtag research to improve reach | |
| β’ One round of revisions per post | |
| This package is great for businesses posting occasionally or testing the waters with social media. Does this suit your needs, or would you like to explore higher tiers like 6-10 posts or 11+ posts for more frequent engagement?""" | |
| elif '6-10' in message or ('6' in message and 'post' in message): | |
| return """The 6-10 posts package (R425/post) is perfect for businesses aiming for regular engagement. Here's what's included: | |
| β’ Custom graphics and captions for each post | |
| β’ Basic hashtag research to improve reach | |
| β’ One round of revisions per post | |
| This package is ideal for businesses looking to build a stronger social media presence with consistent content. Does this meet your needs, or would you like to explore the 11+ posts package for even more frequent posting?""" | |
| elif '11' in message or ('11+' in message and 'post' in message): | |
| return """The 11+ posts package (R400/post) is designed for businesses that want to dominate social media with frequent, high-quality content. Here's what's included: | |
| β’ Custom graphics and captions for each post | |
| β’ Basic hashtag research to improve reach | |
| β’ One round of revisions per post | |
| This package is ideal for businesses with an active audience or those running campaigns. Does this suit your needs, or would you like to explore smaller packages like 1-5 or 6-10 posts?""" | |
| else: | |
| return """Great! We offer tiered pricing based on the number of posts: | |
| π± 1-5 posts: R450/post | |
| π± 6-10 posts: R425/post | |
| π± 11+ posts: R400/post | |
| Each post includes custom graphics, engaging captions, and basic hashtag research. Which tier would you like to learn more about?""" | |
| def _handle_branding_inquiry(self, message: str) -> str: | |
| """Handle branding-related questions following the script.""" | |
| if 'basic' in message.lower(): | |
| return """The Basic Branding Kit (R1,200) is perfect for startups needing essential branding elements. Here's what's included: | |
| β’ Primary and secondary logo variations | |
| β’ Color palette and fonts | |
| β’ Digital business cards, letterhead, and email signature | |
| This package is ideal for businesses looking for a professional identity without extensive branding needs. Does this suit your business, or would you like to explore the Standard or Premium packages for more comprehensive branding?""" | |
| elif 'standard' in message.lower(): | |
| return """The Standard Branding Kit (R1,800) is designed for businesses wanting a stronger brand identity. Here's what's included: | |
| β’ Everything in the Basic Kit | |
| β’ Social media templates for Instagram, Facebook, LinkedIn, and Twitter | |
| β’ A custom PowerPoint or Google Slides presentation template | |
| This package is ideal for businesses that need consistent branding across multiple platforms. Does this meet your needs, or would you like to explore the Premium package for a complete branding suite?""" | |
| elif 'premium' in message.lower(): | |
| return """The Premium Branding Kit (R2,500) is perfect for businesses needing a full, custom brand experience. Here's what's included: | |
| β’ Everything in the Standard Kit | |
| β’ Marketing collateral (brochures, flyers, ads) | |
| β’ Detailed brand guidelines covering logo usage, typography, color codes, and brand messaging | |
| This package is ideal for businesses looking for a comprehensive branding identity. Does this suit your needs, or would you like to explore simpler options like the Basic or Standard packages?""" | |
| else: | |
| return """We offer three branding packages: | |
| π¨ Basic (R1,200): Logos, color palette, fonts, and business cards | |
| β¨ Standard (R1,800): Includes social media templates and presentation templates | |
| π Premium (R2,500): Complete branding suite with marketing collateral and brand guidelines | |
| Which one would you like to learn more about?""" | |
| def _handle_logo_inquiry(self, message: str) -> str: | |
| """Handle logo design inquiries following the script.""" | |
| if 'more' in message.lower() or 'detail' in message.lower(): | |
| return """Our logo design service is perfect for businesses needing a unique, professional logo. Here's what you get: | |
| β’ 2 initial concept designs to choose from | |
| β’ 3 revision rounds to perfect your logo | |
| β’ Versatile file formats for print, web, and social media | |
| This service is ideal for startups or businesses rebranding. Does this meet your needs, or would you like to explore our branding kits for a complete identity package?""" | |
| else: | |
| return """Our logo design service costs R850 and includes: | |
| β’ 2 concept designs to choose from | |
| β’ 3 revision rounds to refine your chosen design | |
| β’ Multiple file formats (PNG, JPG, PDF, AI, SVG, EPS) | |
| Would you like to proceed, or do you need more details?""" | |
| def _handle_consultation_request(self) -> str: | |
| """Handle consultation booking requests.""" | |
| return f"""Let's schedule your free consultation! | |
| Available times: | |
| Monday-Friday | |
| β’ Morning: 9:00 AM - 12:00 PM | |
| β’ Afternoon: 2:00 PM - 5:00 PM | |
| Please provide: | |
| 1. Your name | |
| 2. Business name | |
| 3. Email or phone | |
| 4. Preferred time slot | |
| Or you can: | |
| β’ Email us at {self.contact_info['email']} | |
| β’ Call us at {self.contact_info['phone']} | |
| During the consultation, we'll discuss your business goals and create a custom digital strategy.""" | |
| def _handle_pricing_inquiry(self) -> str: | |
| """Handle general pricing inquiries.""" | |
| return """Here's our complete pricing breakdown: | |
| π Website Packages (Monthly): | |
| β’ Business: R600 | |
| β’ Business Pro: R660 | |
| β’ E-Commerce: R760 | |
| π± Social Media Posts: | |
| β’ 1-5 posts: R450/post | |
| β’ 6-10 posts: R425/post | |
| β’ 11+ posts: R400/post | |
| π¨ Branding Packages: | |
| β’ Basic Kit: R1,200 | |
| β’ Standard Kit: R1,800 | |
| β’ Premium Kit: R2,500 | |
| Would you like detailed information about any specific package?""" | |
| def create_interface(): | |
| """Create and configure the Gradio interface.""" | |
| bot = MalfactorBot() | |
| demo = gr.ChatInterface( | |
| fn=bot.respond, | |
| title="Malfactor Labs Digital Assistant", | |
| description="Let's grow your business online! Ask me anything about our digital services.", | |
| examples=[ | |
| "What are your website packages?", | |
| "Tell me about social media pricing", | |
| "I need help with branding", | |
| "Calculate ROI for my business", | |
| "Book a consultation" | |
| ], | |
| theme=gr.themes.Soft( | |
| primary_hue="blue", | |
| secondary_hue="gray", | |
| ) | |
| ) | |
| return demo | |
| if __name__ == "__main__": | |
| demo = create_interface() | |
| demo.launch() |