import gradio as gr import subprocess def generate_video(keyword): # Run the main script (adjust the command if needed) command = f"python main.py --keyword \"{keyword}\"" result = subprocess.run(command, shell=True, capture_output=True, text=True) return result.stdout # This can be changed to show more detailed output or a file link iface = gr.Interface( fn=generate_video, inputs=gr.Textbox(label="Enter a Keyword for Video Generation"), outputs="text", title="MoneyPrinterTurbo Video Generator", description="Enter a keyword, and the AI will generate video components using MoneyPrinterTurbo." ) if __name__ == '__main__': iface.launch()