import gradio as gr # Import your entry script - adjust this line as per your script's structure from entry_with_update import create_interface # Initialize your Gradio interface - this function call will depend on your script interface = create_interface() with open('entry_with_update.py', 'r') as file: exec(file.read()) # Launch the interface if __name__ == "__main__": interface.launch()