File size: 687 Bytes
db973a3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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()