File size: 572 Bytes
8303bc7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import gradio as gr
import sys
import os

# Add the dist directory to Python path to import obfuscated modules
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'dist'))

try:
    # Import from obfuscated modules
    from ui import create_interface
except ImportError as e:
    print("Make sure you have run the obfuscation script first.")
    sys.exit(1)

if __name__ == "__main__":
    demo = create_interface()
    demo.launch(
        share=False,
        show_error=False,
        show_api=False,
        server_name="0.0.0.0",
        server_port=7860
    )