import gradio as gr import sys import os # Add the dist directory to Python path sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'dist')) # Import obfuscated module try: from core_logic import ( generate_speedpainting_secure, get_company_info, get_example_images, create_footer, get_custom_css ) except ImportError as e: print(f"Error: Obfuscated module not found: {e}") print("Current directory:", os.getcwd()) print("Files in dist:", os.listdir('dist') if os.path.exists('dist') else 'dist not found') sys.exit(1) # Create Gradio interface with gr.Blocks(title="Miragic Speed-Painting", theme=gr.themes.Ocean(), css=get_custom_css()) as demo: gr.Markdown("""
Upload an image to see AI create speedpainting animations!
If you like our Speed Painting results, please give us a ⭐ into our space!
Please sign up at Miragic.ai for unlimited access to all our AI tools!
SignUp for Free 🚀