import gradio as gr # Load the model interface from Hugging Face model_interface = gr.load("models/Yntec/80sMoviePoster") # Create a Gradio app with gr.Blocks() as demo: gr.Markdown("## 🎬 80s Movie Poster Generator") gr.Markdown( "Generate stunning 80s-style movie posters using AI! " "Enter a prompt, and the model will create an image based on your input." ) with gr.Row(): with gr.Column(scale=1): gr.Markdown("### How to Use:") gr.Markdown("- Enter a description of your movie poster.") gr.Markdown("- Click 'Submit' and wait for the AI to generate an image.") gr.Markdown("- Download and share your generated poster!") with gr.Column(scale=2): # Embed the model interface inside the Blocks layout model_interface.render() gr.Markdown("### Try it now and bring back the retro vibes! 🚀") # Launch the app demo.launch()